Skip to content

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