I'm working on a API which use bearer tokens and claims to authenticate and authorize my users.
Everything works great. But I am wondering about the roles management with this setup.
Do I have to store the roles as claims in order to get the [Authorize(Roles="")] attribute to work? Currently I have the user roles in two tables, AspNetUserRoles and AspNetUserClaims because the attribute does not read the user role if it's not in the token(not in claims table), It seems overkill to store the roles in two tables.
Why is that? Everything else related to the user is accessible through the UserManager, And I thought that the role would be read from the related entity and not through the token.