You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would really like to use psa as authentication system (im using django) for my single page app. I have a function exchanging authorisation_code given by client for access_token like this:
@Matusko not sure what you're exactly asking here...
I don't think I understand you correctly, but isn't this user = backend.do_auth(request.GET.get('access_token')) the part of the example that you need?
It seems like you've already got the request as part of your function definition.
I would really like to use psa as authentication system (im using django) for my single page app. I have a function exchanging authorisation_code given by client for access_token like this:
def auth(request):
code = request.POST['code']
provider = 'google-oauth2'
...
return access_token, client_id, expires_in, token_type
If i want to create and persist my user using this example http://python-social-auth.readthedocs.org/en/latest/use_cases.html#signup-by-oauth-access-token
I dont really know what the request should be.
Is there some way how to create a db record from this using psa?
The text was updated successfully, but these errors were encountered: