Google OAuth User Authentication Problem

144 views
Skip to first unread message

Owen Densmore

unread,
Dec 2, 2015, 10:33:56 PM12/2/15
to Firebase Google Group
The Firebase doc for JAVASCRIPT WEB GUIDE Google Authentication
includes an examble of OAuth config w/ Google.
which then points me to Google to create an app
that then logs me in to the Google Cloud Platform console

From there on, the Firebase OAuth example deviates from what I see on Google.

FB seys: click the Create Project button. There isn't one. Instead there are several Google dev products in square panels. And so on. They likely have updated their site.

Is there a more recent FB OAuth example for Google?

Frank van Puffelen

unread,
Dec 3, 2015, 11:52:35 AM12/3/15
to Firebase Google Group
Hey Owen,

It indeed looks like the flow in the Google developer console is slightly different now. The "Create a project" link is now in the Projects drop-down in the top menu bar. The drop-down will either say "Select a project" or show the name of your current project.

    Frank

Owen Densmore

unread,
Dec 4, 2015, 7:37:35 PM12/4/15
to Firebase Google Group
On Thursday, December 3, 2015 at 9:52:35 AM UTC-7, Frank van Puffelen wrote:
Hey Owen,

It indeed looks like the flow in the Google developer console is slightly different now. The "Create a project" link is now in the Projects drop-down in the top menu bar. The drop-down will either say "Select a project" or show the name of your current project.

    Frank

That worked, thanks. So I now have project started:
  Name: FirebaseAuth ID: firebaseauth-1146 Number: nnnnnnnnnnnn

Then I looked for the Credentials mentioned in the FB Google OAuth docs. Took a while with the new UI .. it was under API Manager. This give me access to all the fields FB mentions.

So I completed the configuration, using the URLs FB provides for Authorized JavaScript origins & Authorized redirect URIs. I also updated the FB Google entries to match.

I then tried
  ref.authWithOAuthPopup("google", authHandler);
but I got an odd error.  My Authorized redirect URIs was:
but the error shows
.. i.e. backspaces.firebaseio.com was truncated to just backspaces which failed.

I really don't know what's up, but my guess the FB docs and the new Google console are the problem?

   -- Owen

Here's the error text:

Error: redirect_uri_mismatch

Application: Backspaces FB Auth Test
You can email the developer of this application at: <my name>@gmail.com

The redirect URI in the request: https://auth.firebase.com/v2/backspaces/auth/google/callback did not match a registered redirect URI.

Learn more
Request Details
hl=en
scope= profile
response_type=code
state={"firebase":"backspaces","transport":"popup","v":"js-2.3.1"}
That’s all we know.
 

Jacob Wenger

unread,
Dec 4, 2015, 8:14:52 PM12/4/15
to fireba...@googlegroups.com
Get rid of "firebaseio.com" from your callback URL. Just use your Firebase app name (that is, "backspaces").
--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/56b7821e-6d0b-4220-ae00-179926d5877b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Owen Densmore

unread,
Dec 6, 2015, 4:49:31 PM12/6/15
to Firebase Google Group
Thanks .. that fixed it. Whew!
Reply all
Reply to author
Forward
0 new messages