Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 579
user2409832 Avatar asked May 22 '13 13:05

user2409832


People also ask

How do I add URI to Google console?

Note: This steps are intended for novice users. Go to Google API console and click API Access tab on the sidebar. Click Edit Settings under Client ID for web applications block. Enter your URIs, one per line as shown in picture below, and click Save/Update.

How do I add a redirect to URI?

To add a redirect URI that uses the http scheme with the 127.0. 0.1 loopback address, you must currently modify the replyUrlsWithType attribute in the application manifest.


1 Answers

It is not immediately apparent as to where to do this in my opinion, so here are some useful screenshots.

1) Navigate to the Credentials screen... something like "https://console.developers.google.com/apis/credentials...."

2) Click on your 'Oauth 2 client I.D.' link.. in this case it is "Web client 1"

2) At the bottom of the screen you can add your site url like - "http://localhost:[some number]/signin-google" and save.

like image 168
Jamie M. Avatar answered Sep 29 '22 08:09

Jamie M.