How to add or change return uri in google console for oAuth2

user2409832 picture user2409832 · May 22, 2013 · Viewed 21.7k times · Source

I want to use google oAuth from my webservice i have created new oAuth key but when I use it i get

Error: redirect_uri_mismatch
The redirect URI in the request: www.blabla.com
did not match a registered redirect URI

Now, where to find the registered redirect URI to change it, or where can I add another one. Under "API Access" menu of the console I can only "Edit brand information", "Create Another Client ID" and "Edit allowed domains", but I don't have permissions to add one.

Answer

user2409832 picture user2409832 · May 23, 2013

My problem was that I have created an Client ID for "Service account". And didn't even tried the wizard for "Web application". Because my controller was making a web request the Web Application option is the right one. Silly me.

Under the Web Application Client ID settings you can adjust the return uri, and Service Account settings don't have that option.