Generate custom token in iOS

262 views
Skip to first unread message

Edward Anthony

unread,
Sep 10, 2015, 10:14:40 AM9/10/15
to Firebase Google Group
Two questions:

We have Parse iOS App and I want to integrate Parse + Firebase, we already have users.
We want to use Parse for the authentication and Firebase for chat screen.
Is it correct that we have to generate custom token for this purpose?

On Firebase documentation
There is no Objective-C / Swift language, for generating token, only server side language.
Is it true that Firebase offer no way to generate token from device and developer has to set up a server just to generate this token?

Jacob Wenger

unread,
Sep 10, 2015, 10:26:17 AM9/10/15
to fireba...@googlegroups.com
Hey Edward,

Generating custom tokens so that Parse can speak with Firebase does seem like a valid thing to do. However, one important thing to realize with generating custom tokens is that you should generate them on a server for security reasons. In order to generate a custom token, you need to use your Firebase secret, which no client should ever see. If you share your secret with a client, then that client now has full access to your Firebase database. So if you want to set up custom authentication, you need to run the token generation on a server of your own. That is why we don't offer a Obj-C / Swift token generator.

Cheers,
Jacob

--
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/66d005ab-7bf2-4e53-8ab9-a40f2fd3926f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages