Devise alternative for API based authentication ?

151 views
Skip to first unread message

Rakshit Majithiya

unread,
Sep 14, 2013, 9:30:08 AM9/14/13
to rubyonra...@googlegroups.com
Hi,
As token_authenticatable is completely removed from Devise, there's no way to use it for API based authentication system.
What would be a best solution for rails 4 api based application ?

-rax

bacrossland

unread,
Sep 16, 2013, 10:22:36 AM9/16/13
to rubyonra...@googlegroups.com
Hi Rax,

You can write your own as discussed on the Devise Blog under Token Authenticatable: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/. It's not hard to do. I had one up and running in about 1 hour with one of the projects I'm working on.

Thanks,
Bryan 

Erwin

unread,
Sep 17, 2013, 1:59:04 AM9/17/13
to rubyonra...@googlegroups.com
Have a look at Doorkeeper + Oauth2 + Devise, this is what I am using for API authentication
Reply all
Reply to author
Forward
0 new messages