Hi there,
i’m trying to secure my API with RBAC.
On Auth0 dashboard i’ve created an Web-App and an API, authorize the App to use this API,
added some permissions to the API and enabled RBAC Setting,
created a role with a permission of the API,
assigned this role to a user,
logged in to the App with this user.
As this App retrieved a token for this API from endpoint /oauth/token with params:
{
"client_id":"<app-id>",
"client_secret":"<app-secret>",
"audience":"https://test.app/api/test",
"grant_type":"client_credentials"
}
, the permissions claim of the returned JWT is empty. What is wrong or is any configuration missing?
The JWT is like this:
{
"alg": "RS256",
"typ": "JWT",
"kid": "********"
"iss": "https://***.auth0.com/",
"sub": "**************@clients",
"aud": "https://test.app/api/test",
"iat": 1624679108,
"exp": 1624679168,
"azp": "**************",
"gty": "client-credentials",
"permissions": []
}