Forum: Ruby on Rails API Only Rails Application

70eb79ebfc46c5eb93721e2e4fff9c7f?d=identicon&s=25 "Mehmet BEYDOĞAN" <> (Guest)
on 2013-10-05 17:50
(Received via mailing list)
I'm currently working on an API only Rails application. It has a web ui
which is built with AngularJS and there will be a mobile app. Web and
mobile apps will use same rails application and exchange data with JSON.

But I'm having issues with user authentication. How can i handle this?
Should i use oauth2 and devise? I'm not able to figure it out.

Cca068efe0c9f8f5853069c1fa211e56?d=identicon&s=25 Paul (Guest)
on 2013-10-05 21:49
(Received via mailing list)
I don't know for sure, but I used devise, but then I ended up cutting
most of the functionality, so it probably would have been easier to go a
different route. I don't use any of the devise views except for the link
that one clicks from their email when they forget their password. The
and account settings are just part of my single-page app. I ended up not
using the devise login route either -- I forget why, but it was doing
something extra.

So, I'd love to hear what the canonical way to do that is, too.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.