wagnerdelima / drf-social-oauth2

drf-social-oauth2 makes it easy to integrate Django social authentication with major OAuth2 providers, i.e., Facebook, Twitter, Google, etc.
https://drf-social-oauth2.readthedocs.io/en/latest/
MIT License
274 stars 34 forks source link

auth/token POST request --Invalid credentials given-- #61

Closed BenK93 closed 2 years ago

BenK93 commented 3 years ago

Hey there! First of all thanks a lot you have done wonderful job! 🙏🏽 I'm running to en issue when I try to login through http://127.0.0.1:8000/auth/token I use the exact username and password, client id and secret are copied from admin panel

Screen Shot 2021-06-23 at 15 36 34

For example http://127.0.0.1:8000/auth/convert-token works perfectly fine

Screen Shot 2021-06-23 at 15 41 29
visued commented 3 years ago

+1

vshia commented 3 years ago

I'm running into the same problem and was wondering if you were able to figure out a workaround (or patch)? Thanks

wagnerdelima commented 2 years ago

Hi @BenK93,

I am assuming the convert-token endpoint is not enough for your needs? Did you overcome this issue?

I am sorry for the delayed response. It's that I've been really busy and I haven't got much help with this repo, so I am all alone to maintain it.

Jrad84 commented 2 years ago

I had this issue too and fixed it by changing my backend application Authorization Grant type to Resource owner password-based. When I used Authorization code it gave me the "invalid client" error response.

wagnerdelima commented 2 years ago

Hi @Jrad84

Thanks for your message and for your investigation! I will leave this issue open so I can investigate it later.

vishalmehta672 commented 2 years ago

http://127.0.0.1:8000/auth/convert-token

Where we get token?

wagnerdelima commented 2 years ago

I suggest you read the README file. It contains information about the endpoint.

vishalmehta672 commented 2 years ago

I am use the exact username and password, client id and secret are copied from admin panel. can please suggest where I am doing mistake.

Screenshot 2022-01-20 at 5 54 22 PM

Shodiev-Shokhrukh commented 2 years ago

+the same

wagnerdelima commented 2 years ago

Nowhere in the documentation it suggests the grant_type to be password. Try replacing it by covert_token, instead.