Devise alternative for API based authentication ?

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

Have a look at Doorkeeper + Oauth2 + Devise, this is what I am using for API authentication