Authenticate existing rails users on Firebase using one of it's auth method

120 views
Skip to first unread message

malav desai

unread,
Jun 26, 2018, 10:14:38 AM6/26/18
to Firebase Google Group
Can anyone help me to use AngularFire with Rails 4? I have an existing application running on rails 4 and I have implemented "Devise" authentication and users can sign up using Google Auth, Facebook Auth, and Normal Email-Password. Now want to implement Chat feature using Firebase. How am I going to authenticate my existing and new users on Firebase? Do I have to Authenticate Users on Firebase or directly access Real-time Database?

Kato Richardson

unread,
Jun 26, 2018, 12:55:44 PM6/26/18
to Firebase Google Group
Hi Malav,

Firebase auth is primarily client side. The simplest answer here is to use the JS SDK on the client to authenticate, rather than trying to do this in Rails on the server. If your app is structured that you need the auth in Rails to render pages, you might need to try sending some data back and forth with the server (i.e. sending the auth id token to the server and using verifyIdToken() from the admin sdk). Note that you can also Auth via REST, but that's a whole other can of worms, since you likely need client interaction to complete Auth, which is tricky in RoR.

☼, Kato

On Tue, Jun 26, 2018 at 7:14 AM malav desai <mala...@gmail.com> wrote:
Can anyone help me to use AngularFire with Rails 4? I have an existing application running on rails 4 and I have implemented "Devise" authentication and users can sign up using Google Auth, Facebook Auth, and Normal Email-Password. Now want to implement Chat feature using Firebase. How am I going to authenticate my existing and new users on Firebase? Do I have to Authenticate Users on Firebase or directly access Real-time Database?

--
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/4eca714a-5be6-4a33-a157-1362a10725f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Reply all
Reply to author
Forward
0 new messages