Forum: Ruby on Rails API Only Rails Application

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
70eb79ebfc46c5eb93721e2e4fff9c7f?d=identicon&s=25 "Mehmet BEYDOĞAN" <mbbrain@gmail.com> (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.

Regards.
-Mehmet.
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
out
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
login
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.
This topic is locked and can not be replied to.