Auth0 permissions in claims

Hi, I am newbie. I have a user and permissions assigned directly to the user (in Auth0). Now, in asp.net core (C#) I logged in with credentials of the user, but I can’t see the permission of the user (I can see email, name… in the user.claims ). How I can add permission to my claims ? My settings: Enable RBAC = enabled, Add Permissions in the Access Token = enabled.
I want define policy and then control by [Authorize(read:all)]… or so…
Thanks!

Hi @bconnect,

Can you extract the token and see if the permissions are there? You can debug tokens on JWT.io.

Let me know,
Dan

If I’m not mistaken, permissions require the use of an audience when starting the flow. If the audience is missing, the permissions for that API will not be added.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.