I have a role admin assigned to a user. On that role, there's a claim elevated. When I sign in using authorization code flow and get the token, the sub field is correctly set. However, there's no sight of the role nor the claim for it.
I checked the AspNetUserRoles
against the IDs for the user and the role. Those were set up correctly. What more can be the cause of this?
The claims for the client are present in the JWT too but nothing related to the user that just logged in.
Do I have to implement profile service and amend those manually? I expected the roles that the user is in to be added automatically, along with whatever claims that are reöated to them.