i need pass data through social authentication (so can access after login complete) using django-allauth, i'm not sure how go doing documentation seems lacking in area.
from gather, oauth2 accepts state parameter can used transfer sort of data. after spending hours trolling through django-allauth code, appears there might ability append dynamic state parameter. however, have no idea proper way introduce data request is, nor @ point should occur. need monkey patch in socialaccounts/views.py? unfortunately doesn't seems socialaccounts adapter.py has way hook request this.
edit: looks there's opportunity access state parameter here, again, i'm unsure of best way this.
it turns out state parameters red herring; however, django-allauth passes django session id through oauth requests. allows store data safely in request.session before authentication occurs, , access again later after authentication complete.
Comments
Post a Comment