Currently only demonstrates GitHub OAuth with drf-social-oauth2
pip install -r requirements.txt
- Setup New application
- Register GitHub Integration
- Export key/secret as
SOCIAL_AUTH_GITHUB_KEY/SOCIAL_AUTH_GITHUB_SECRET
- Go to
https://localhost:8000/auth/login/github/
- Copy
code
from/auth/complete/github
endpoint
curl -X POST -d "grant_type=convert_token&client_id=<client_id>&client_secret=<client_secret>&backend=github&token=<code>" https://localhost:8000/auth/convert-token