drf-social-oauth2 icon indicating copy to clipboard operation
drf-social-oauth2 copied to clipboard

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

Open simo-berto98 opened this issue 3 years ago • 2 comments

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

simo-berto98 avatar Jun 04 '22 12:06 simo-berto98

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

wagnerdelima avatar Jun 07 '22 07:06 wagnerdelima

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

simo-berto98 avatar Jun 07 '22 21:06 simo-berto98

@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.

wagnerdelima avatar Apr 16 '23 22:04 wagnerdelima