Skip to content

Should identity roles be included on default root user? #716

Answered by fretje
jay-cascade asked this question in Q&A
Discussion options

You must be logged in to vote

These are the claims that are sent in the token:

https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/370dc7bb7a5c84af53ea37cdffa109060b07807e/src/Infrastructure/Identity/TokenService.cs#L110-L122

After logging in, you can retrieve the permissions via api/personal/permissions, which ultimately calls:

https://github.com/fullstackhero/dotnet-webapi-boilerplate/blob/370dc7bb7a5c84af53ea37cdffa109060b07807e/src/Infrastructure/Identity/UserService.Permissions.cs#L10-L29

On the client side, you should only look at permissions to enable/disable things. never roles. The roles are just an intermediary thing for more easily managing groups of permissions, but ultimately the permissions a…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jay-cascade
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants