Error: redirect_uri_mismatch with Firebase 3.0.1

2,507 views
Skip to first unread message

Dennis Baldwin

unread,
May 19, 2016, 4:14:52 PM5/19/16
to Firebase Google Group
Hi,

We are migrating our web project to use the new web sdk. Whenever we try to use the Google auth method everything works fine until the user is redirected back to our app. We are seeing a redirect_uri_mismatch error like this:

"The redirect URI in the request, https://fiery-inferno-xxxxxxxx.firebaseapp.com/__/auth/handler, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/apis/credentials/oauthclient/xxxxxxxx to update the authorized redirect URIs."

We've tried adding various url formats, but it still throws an error. This isn't a problem with our existing code based on the 2.4.2 sdk. In this case the following OAuth redirect uri works fine:


Any ideas how to make this work with the 3.0.1 web sdk?

Thanks.


boj...@google.com

unread,
May 19, 2016, 7:23:51 PM5/19/16
to Firebase Google Group
When you go to the console link, pick the web application oauth 2.0 client ID you are using for google web sign in,
Add the following to authorized javascript origins:

Add the following to authorized redirect uris:

Save  and then try again. GIve it a minute, sometimes this could take some time to apply.

Dennis Baldwin

unread,
May 20, 2016, 2:30:27 PM5/20/16
to Firebase Google Group
This appears to have done the trick. Thanks for the help.
Reply all
Reply to author
Forward
0 new messages