Question

I have been facing the same problem from Google Cloud API Console for over a day now.

I tried to add a new redirect_uri for an old project to use it in my webapp but it gives me "redirect_uri mismatch" error. Old redirect uri still work as they used to.

I even tried creating a fresh project from the start and then registered a new application. This now gives me "invalid_client" error via google oauth.

If the old redirect_uri redirect as they should, then why doesn't the new one? Does something else need to be done when addding a new redirect uri?

Was it helpful?

Solution

This looks like a bug.

See Newly created Oauth Client IDs don't work for what seems like a successful workaround.

OTHER TIPS

Your errors are all self explanatory, so you simply need to carefully retrace your steps and check typing, that you are using the correct client id with the appropriate urls.

it gives me "redirect_uri mismatch" error. The uri must match character for character. eg. watch for http(s) and trailing slash

This now gives me "invalid_client" error via google oauth. Either you forgot to enable the API or you haven't correctly installed the new client ID in your app.

Does something else need to be done when adding a new redirect uri? NO. Just make sure it exactly matches the URL you are passing.

It's sometimes easier to switch back to the old API Console. There is a faint grey link at the bottom of the screen in the new cloud console.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top