Skip to content

Also accepting authorization codes instead of access tokens #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 31 commits into from
Closed

Also accepting authorization codes instead of access tokens #72

wants to merge 31 commits into from

Conversation

philippeluickx
Copy link
Contributor

oauth2 (at least Facebook) can provide an authorization code instead of an access token. This code is short lived and provides a way to fetch a long lived access token.

I am using https://github.com/sahat/satellizer in the frontend which by default fetches code, not token. Hence the implementation in the backend.

Source:
http://stackoverflow.com/questions/8666316/facebook-oauth-2-0-code-and-token

@SakuradaJun
Copy link

+1
Very helpful.

@philippeluickx
Copy link
Contributor Author

You can close this one and refer to #95 instead, it is a bit more clean

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.6%) to 88.925% when pulling 1371eb9 on philippeluickx:master into bd97eee on Tivix:master.

steverecio pushed a commit to steverecio/django-rest-auth that referenced this pull request Jun 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants