Any good ideas on how to troubleshoot django allauth
Hi again.
Allauth works for me... sometimes... For google logins it works most of the time. For facebook it almost never works. When it does not work, I get an error page with the error "An error occurred while attempting to login via your social network account." (or the equivalent in my locale). If I then reload the page, I get logged in!
In some cases I get the error and the little green popup saying that I am logged in at the same time. Strange.
So... If there is any documentation for how to set up or how to troubleshoot django allauth I am all ears (eyes, really). I have tested the "missing howto..." and updated version of that without enough success.
Cheers // David
The only thing I find is in the Apache log: (I have removed all cryptovalues and other things that should be uninteresting to others)
[LOCAL_IP] - - [19/Apr/2017:00:00:39 +0000] "GET /accounts/facebook/login/?process=login&next=%2Farchives%2F HTTP/1.1" 302 706 "https://lists.example.com/accounts/login/?next=/archives/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063"
[LOCAL_IP] - - [19/Apr/2017:00:00:53 +0000] "GET /accounts/facebook/login/callback/?code=[LONG CRYPTO-LOOKING STRING] HTTP/1.1" 200 2129 "https://www.facebook.com/login/reauth.php?app_id=[MY_APP_ID_I_THINK]&signed_next=1&next=https://www.facebook.com/v2.8/dialog/oauth?redirect_uri=https%3A%2F%2Flists.example.com%2Faccounts%2Ffacebook%2Flogin%2Fcallback%2F&state=[ALPHANUM]&scope=public_profile+email&response_type=code&auth_type=reauthenticate&client_id=[NUMERIC]&ret=login&logger_id=[GUID]&cancel_url=https://lists.example.com/accounts/facebook/login/callback/?error=access_denied&error_code=200&error_description=Permissions+error&error_reason=user_denied&state=[ALPHANUm]#_=_&display=page&locale=sv_SE&logger_id=[GUID]" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063"
participants (3)
-
David Krantz
-
Mark Sapiro
-
Stephen J. Turnbull