RealmTeam / django-rest-framework-social-oauth2

python-social-auth and oauth2 support for django-rest-framework
MIT License
1.06k stars 191 forks source link

I am getting a 401 Error (Unauthorized) and Uncaught (in promise) Error. Same is working fine on PostMan #257

Open Madhu25666 opened 1 year ago

Madhu25666 commented 1 year ago

We seem to be getting a 401 error with the new django admin with drf social oauth2. But working fine on Postman ** We are getting a 401 Error (Unauthorized) when we pass the clientid and client_secret through browser. The same clientID and secret returns the tokens on PostMan. error1 error2 error3 error4 error5

Go to Login page where the signin button is' Click on 'Signin' Scroll down to 'Console' POST http://127.0.0.1:8000/auth/token/ 401 (Unauthorized) and Uncaught (in promise) Error: Request failed with status code 401 Expected behavior An object with access and refresh token