Problem switching to production key (using google)

I am trying to change from using development key to production key. I’ve followed the instructions in https://auth0.com/docs/connections/social/google. and was able to get the “try connection” to work but when I switch my server’s client ID and client secret, my server gets an error. Auth0’s logging shows the following:

{
“date”: “2020-10-06T00:39:20.041Z”,
“type”: “f”,
“description”: “Unknown client: ***.googleusercontent.com",
“connection_id”: “”,
“ip”: “...”,
“user_agent”: “Firefox 80.0.0 / Ubuntu 0.0.0”,
“details”: {
“body”: {},
“qs”: {
“client_id”: ".apps.googleusercontent.com",
“redirect_uri”: “http://79bf19ab1d41.ngrok.io/complete/auth0”,
“state”: "
”,
“response_type”: “code”,
“scope”: “openid profile email”
},
“error”: {
“message”: “Unknown client: ********.apps.googleusercontent.com”,
“oauthError”: “invalid_request”,
“type”: “request-error”
}
},
“hostname”: “dev-nntcqe9x.auth0.com”,
“log_id”: “90020201006003923866000499649762847809327568498347475026”,
“_id”: “90020201006003923866000499649762847809327568498347475026”,
“isMobile”: false
}

Since the test works on the website, i’m not sure what i’m missing in my settings, what else could be different that I should double check?

This error is related to your client id. Can you double-check the client ID you got from google is not missing any characters? Or including unwanted chars?

I copied and pasted them. it is the same one i put in social google, where the ‘try connection’ said it works.

{
  "sub": "google-oauth2|10453991237316744266",
  "given_name": "Steve",
  "family_name": "Fake",
  "nickname": "hyperian",
  "name": "LALALA",
  "picture": "**************************",
  "locale": "en",
  "updated_at": "2020-10-07T00:15:19.522Z",
  "https://django-webapp/role": "admin"
}

The try connection works after you switched to your prod keys, but nothing else?

I’ve copied over the authorized URIs and redirect URIs from auth0 to google credential service. and i switched my working service from using dev key to production key and i get the error message i posted above.

But the try function still works?

Yes, with google credential’s client ID and key, yes, try connection works.

Can you DM me a HAR file of the transaction where you run into this error?

This was a mixup between the application client ID and the google connection client ID.

Resolved

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.