question

RonaldRex-2335 avatar image
0 Votes"
RonaldRex-2335 asked Bruce-SqlWork answered

Identity Role management system

Does anyone know of a tutorial that would help me build a Role-based authorization management system in Angular that will allow me to assign roles to a user and persist the setting to the Identity Core Membership tables. Does role based Authorization involve reading the token or the tables? Is this mainly done today using Azure? Thanks !!!

dotnet-aspnet-core-generaldotnet-aspnet-core-webapidotnet-entity-framework-core
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

In Microsoft identity, the user.principal has claims. One type of claim is a role. Any identity system can build the principle. Typically they will have a place to add claims. The identity system supports defining a role provider. The provider may support crud operations on the user roles, but this is not required.

The database based individual identity supports roles, but only includes templates for login, logout and register. If you want roles, you will need to design the admin site.

You should read the docs.

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/?view=aspnetcore-6.0

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.