# RoR Web Api, Sharing jwt between 2 different clients

**URL:** <https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420>\
**Category:** Get Help\
**Tags:** jwt, clients\
**Created:** [April 29, 2017, 8:11pm UTC](https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420 "2017-04-29T20:11:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matias](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matias/32/6863_2.png) [@matias](https://community.auth0.com/u/matias)\
**Post date:** [April 29, 2017, 8:11pm UTC](https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420/1 "2017-04-29T20:11:22Z")

</div>

I started this question before, and there was at the moment a lack of example/documentation for this.  
Wondering if there is something related now.

[Auth0 Community](https://auth0.com/forum/t/sharing-jwt-between-2-different-clients/5302) &  
[Auth0 Community](https://auth0.com/forum/t/sharing-jwt-between-2-differe/5345/5)

Thanks in advance

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [May 9, 2017, 6:19pm UTC](https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420/2 "2017-05-09T18:19:03Z")

</div>

There’s a quickstart about how to configure a RoR API to accept JWT access tokens issued by Auth0 as means of authorizing the request.

> **[Auth0 Ruby On Rails API SDK Quickstarts: Authorization](https://auth0.com/docs/quickstart/backend/rails)**
>
> This tutorial demonstrates how to add authorization to a Ruby on Rails API.

Your client application would then obtain the access token using the means applicable for the type of client application.

---

<div class="post-metadata">

**Author:** ![matias](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matias/32/6863_2.png) [@matias](https://community.auth0.com/u/matias)\
**Post date:** [May 9, 2017, 8:41pm UTC](https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420/3 "2017-05-09T20:41:38Z")

</div>

Hello @jmangelo ,

The issue is how to use different client\_ids for each client.  
I mean, all the clients, will validate the credentials with the same API, but I want different permissions depending the client.  
Example  
Backend app - (ClientId 1)  
Frontend app - (ClientId 2)  
Android app - (ClientId 3)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/ror-web-api-sharing-jwt-between-2-different-clients/6420/4 "2018-03-02T05:53:35Z")

</div>


