OAuth2 view here doesn't log failures, making them very tricky to debug.
This would be helpful as I'm currently having trouble w/ Instagram logins (https://github.com/pennersr/django-allauth/issues/1220)
Any update on this? Debugging OAuth login failures is currently a pain. "Social Network Login Failure" is not very informative on its own.
I have a temporary workaround posted here: http://stackoverflow.com/a/36728888/2800876
This bit us really badly today. The workaround described by @zags only got us this output:
Code: unknown, Error: None
I think we really need some better logging here asap
For those wondering, it's pretty easy to add explicit logging (eg. to an instrumentation server) by overriding the authentication_error method on an adapter.
This bit us really badly today. The workaround described by @zags only got us this output:
Code: unknown, Error: None
I agree, and I apologize in advance that my case is a bit non-common.. but I was trying to make a Read the Docs' development settings work in a UWSGI deployment, which can seem a bit silly and probably is. But while doing this, I really missed better debugging info.
Injecting logging statements directly in to allauth's codebase helped me identify the issues.
If you are faced with similar issues, check that...
settings.CACHE_BACKEND is shared (e.g. memory-based caching isn't shared across UWSGI workers)request.session dict during debuggingSOCIALACCOUNT_STORE_TOKENS=True
Most helpful comment
This bit us really badly today. The workaround described by @zags only got us this output:
Code: unknown, Error: None
I think we really need some better logging here asap