InvalidClientError at /auth/convert-token (invalid_client) <oauthlib.Request SANITIZED>
shukhrat121995 opened this issue · 2 comments
shukhrat121995 commented
Describe the bug
Retrieved token from Google cannot be converted
To Reproduce
Steps to reproduce the behavior:
- Go to OAuth 2.0 Playground
- Select Google OAuth2 API v2 and authorize https://www.googleapis.com/auth/userinfo.email
https://www.googleapis.com/auth/userinfo.profile - Exchange Authorization code for tokens and get access token
- Use this token in convert-token
Expected behavior
/auth/convert-token has to return access token and refresh token
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Browser [ chrome ]
Additional context
Django version 4.0.5
shukhrat121995 commented
I got it working. Why you didn't mention setting up the application? It is different from what you mentioned. I found this article https://djangokatya.com/2021/04/09/social-login-for-django-rest-framefork-for-newbies-a-k-a-for-me/ hope it will be useful for others
ebarkhordar commented
I have the same issue and I do not know how I should fix it?