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 -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cafb96eb-3160-4a46-ad2d-709adad29449%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
On Saturday, September 14, 2013 8:30:08 AM UTC-5, Rakshit Majithiya wrote:> 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 >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 -- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/03f0d19b-d2de-4e56-8be5-6fbbddd2f90c%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Have a look at Doorkeeper + Oauth2 + Devise, this is what I am using for API authentication Le samedi 14 septembre 2013 15:30:08 UTC+2, Rakshit Majithiya a écrit :> > 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 >-- 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-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/3a97d011-c06e-4bb2-b212-bf1daea5878b%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.