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

oauthlib.oauth2.rfc6749.errors.InvalidClientError in google OAuth #129

Closed simo-berto98 closed 1 year ago

simo-berto98 commented 2 years ago

hi, i'm trying to set up authentication with google but the library throws me an InvalidClientError exception calling the auth / convert-token service. As per documentation, I entered the values self-generated by django admin in the client_id and client_secret parameters. What can be the problem? My configuration error?

image

wagnerdelima commented 2 years ago

Hi @simo-berto98. Please, see if this https://github.com/wagnerdelima/drf-social-oauth2/issues/38 helps you.

simo-berto98 commented 2 years ago

Hi @simo-berto98. Please, see if this #38 helps you.

@wagnerdelima thanks for the reply. I have already seen this issue and have followed the steps below. Despite this, the error occurs to me

image

Sorry for the language of the screenshot but I have google in Italian. The applicatio is a Web application and i put the key as secret and client id as OATUH key

wagnerdelima commented 1 year ago

@simo-berto98 can you try the newest versions of drf-social-oauth2? I believe this might be solved. Otherwise, please follow the standard way of create issues, explaining how to replicate it.

Thanks.