API Only Rails Application

42 views
Skip to first unread message

Mehmet BEYDOĞAN

unread,
Oct 1, 2013, 11:56:01 AM10/1/13
to rubyonra...@googlegroups.com
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.

Paul

unread,
Oct 5, 2013, 3:47:48 PM10/5/13
to rubyonrails-talk
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.



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2449ac83-4bab-4f17-bc4d-a0b3a4ea23f3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages