You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
Then this token is used by login action in authorization controller.
Roles
Roles are configured in the Startup.cs class:
publicvoidConfigureServices(IServiceCollectionservices){//...services.AddAuthorization(x =>x.AddPolicy("admin", p =>p.RequireRole("admin")));services.AddAuthorization(x =>x.AddPolicy("user", p =>p.RequireRole("user")));//...}
Roles are used to manage user permissions for controller actions. For example: