Alternate OAuth providers

192 views
Skip to first unread message

Simeon Vincent

unread,
Jul 12, 2015, 4:23:16 PM7/12/15
to fireba...@googlegroups.com
I'm curious how one would go about registering a new OAuth provider with Firebase. It's great that Firebase provides integrated support for several popular OAuth providers, but I'm curious about users that want to use other providers. For example, social networks like Pinterest (developers.pinterest.com) and game companies like Blizzard (dev.battle.net) have OAuth provides.

Ideally, I'd love if there was a way I could add an arbitrary OAuth provider.

Cheers,
Simeon

P.S. Company policy requires that I mention I'm a Blizzard employee. That said, I ask not as representative of Blizzard, but as a web developer interested building cool things in my free time. Views and opinions my own, etc.

Michael Lehenbauer

unread,
Jul 12, 2015, 6:28:03 PM7/12/15
to fireba...@googlegroups.com
Hey Simeon,

In general, you'll need to write your own backend code that exchanges an OAuth token for a Firebase JWT which you can use to authenticate to Firebase.  This is what our Firebase Login service does, but it only supports a select set of oauth providers right now (facebook, twitter, google, and github).  We'll continue to expand that set over time, but we're pretty selective right now.

For more details about "custom authentication" (Firebaes's core auth mechanism, based on JWTs), see https://www.firebase.com/docs/web/guide/login/custom.html

-Michael


--
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/050e5bd4-ea0f-4567-99e7-1275e049c091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Simeon Vincent

unread,
Jul 12, 2015, 7:03:46 PM7/12/15
to fireba...@googlegroups.com
Thanks for the quick reply, Michael! I figured that might be the case. Out of curiosity, if an OAuth provider were to set up a Firebase JWT endpoint, would it be possible to get them added to the docs or some kind of 3rd party provider list?

Cheers,
Simeon

Michael Lehenbauer

unread,
Jul 12, 2015, 7:18:46 PM7/12/15
to fireba...@googlegroups.com
Good question.  Auth0 did a guest blog post a while ago about their integration with Firebase (speaking of which, getting them to support Blizzard oauth might be another option for integration with Firebase :-) ).  We might be able to do something similar, but the bar would be pretty high as you'd need the developer's Firebase secret to generate Firebase JWTs on their behalf, and that has security implications.

-Michael

Reply all
Reply to author
Forward
0 new messages