rails-api icon indicating copy to clipboard operation
rails-api copied to clipboard

User auth with Rails-API.

Open tritonresearch opened this issue 11 years ago • 2 comments

Hi, I have a REST API built on top of Rails API, but now it requires user authentication. The preferred scheme is to have the user send username/password to the API and receive an auth token for subsequent calls.

Is there any recommended way of doing this with Rails API besides Devise, as Devise does not interoperate well with Rails API (see https://github.com/rails-api/rails-api/issues/24 and https://github.com/plataformatec/devise/issues/2775) and provides a bunch of unnecessary functionality for an API?

Thanks in advance, Jake

tritonresearch avatar Mar 16 '15 18:03 tritonresearch

Maybe doorkeeper can do what you need, have a look.

Davidslv avatar Mar 17 '15 12:03 Davidslv

I'm closing this because it's not an issue. Please discuss in the Rails API mailing list and/or IRC channel.

spastorino avatar Apr 12 '15 16:04 spastorino