# \#knock

**URL:** https://community.auth0.com/tag/knock/451.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [How to implement stateless session in rails api using auth0](https://community.auth0.com/t/how-to-implement-stateless-session-in-rails-api-using-auth0/7089)

<div class="topic-metadata">

**Author:** [@hemangj](https://community.auth0.com/u/hemangj)\
**Replies:** 1\
**Last updated:** [June 19, 2017, 8:18pm UTC](https://community.auth0.com/t/how-to-implement-stateless-session-in-rails-api-using-auth0/7089 "2017-06-19T20:18:26Z")

</div>

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: Everytime, every reque…

---

## [How to use group, role, permission in rails backend code?](https://community.auth0.com/t/how-to-use-group-role-permission-in-rails-backend-code/6549)

<div class="topic-metadata">

**Author:** [@hemangj](https://community.auth0.com/u/hemangj)\
**Replies:** 2\
**Last updated:** [June 12, 2017, 8:16pm UTC](https://community.auth0.com/t/how-to-use-group-role-permission-in-rails-backend-code/6549 "2017-06-12T20:16:38Z")

</div>

We are passing jwt token and its get validated by auth0. In return we are receiving { “permissions”=\>“read:abc”\], “groups”=\>“account”\], “roles”=\>“external”\]} in token. We are integrating auth0 with knock gem in backend. …
