Using OAuth client to enable google drive api

32 views
Skip to first unread message

sarbjot singh

unread,
Apr 6, 2020, 8:09:18 AM4/6/20
to Google App Engine
Hey,

I created an web app with express to read google sheets from my google drive. I was developing locally on localhost:3000 and google OAuth sign in works fine.

But when I hosted my app on heruko and changed the authorized url and redirect url accordingly with my heruku web app url it gave me this error.

The redirect URI in the request, http://localhost:15819/auth_callback, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: https://console.developers.google.com/apis/credentials/oauthclient/778678380629-6re9hj4uk9ef5h4f933brc8oop9bka1t.apps.googleusercontent.com?project=778678380629

I have attached image of my setup on google cloud console. 

Any help would be great thanks



OAuth error.png

Olu

unread,
Apr 6, 2020, 3:11:17 PM4/6/20
to Google App Engine
There are a bunch of reasons why this type of error may be reported. From the screenshot shared, I see no issues with your setup trying to change return URI in your google console for OAuth2, which is why I recommend this issue is reported by contacting the GCP Support Engineers[1] or you open an issue using this link[2]. 

 
Reply all
Reply to author
Forward
0 new messages