role
A coarse label on a user, such as editor or administrator, that authorization can check.
In more detail
A user can have several roles, usually carried as claims in their token. Roles suit coarse rules; named policies over claims express finer ones and can combine a role with other requirements.
Related terms
- policy-based authorization — Protecting endpoints with named policies that bundle requirements, such as a scope claim and a role.
- claim — One statement inside a token, as a name and value, such as sub (subject), exp (expiry), iss (issuer), aud (audience) or scope.
Taught in
- Role-Based and Policy-Based Authorization — Modern .NET Core, C# & Enterprise Microservices