Auth0 Home Blog Docs

How to implement stateless session in rails api using auth0

rails-api
rails
knock
stateless

#1

Any gem that can be used to integrate auth0 in rails api codebase that work seamlessly.

We have used knock gem, but for every request it fires database query to get user information.

Known issue: https://github.com/nsarno/knock/issues/154


#2

If you check the Rails API quickstart you’ll see a sample implementation that authorizes each endpoint by only validating the access token included in the request. This approach meets your stateless requirement and you could also extend it to validate additional custom information that you may include in the access token.


#3