Devise alternative for API based authentication ?


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 ?


Hi Rax,

You can write your own as discussed on the Devise Blog under Token Authenticatable: 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.



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