0

I have recently decided to experiment with Angular/Ionic/Phonegap with a Rails API Web Service as backend, to create my first mobile app.

I am from a Rails background and usually use Devise to handle my user authentication/User object to which I assign Roles using Rolify.

Doing some reading, it seems to me that this is not the same methodology that I would have to follow for a mobile app as seen in this question? What I would ideally like to have, is for users to sign in / up using their Facebook accounts, which would create their User record. My web service will then assign the required roles etc.

So my question:

  1. Should I be using Devise/Rolify/Pundit ?
  2. Is there a better/more efficient way to handle this process using this stack?

Thanks

Community
  • 1
  • 1
HermannHH
  • 1,732
  • 1
  • 27
  • 57

2 Answers2

0

You can use Devise with the omniauth-facebook gem. There are some nice articles out there on how to implement. Along with this question you should hopefully be able to work it out.

Community
  • 1
  • 1
Julia Will
  • 616
  • 3
  • 8
0

Any backend auth service should really work fine. We use Devise and have found it to work well with angular and ionic. We recently wrote a tutorial on how to set up Ionic with Devise that you might find useful.

Nick
  • 2,715
  • 4
  • 24
  • 35