Identity Role management system

Ronald Rex 1,666 Reputation points
2021-11-10T20:58:51.747+00:00

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 !!!

Developer technologies | .NET | Entity Framework Core
Developer technologies | ASP.NET | ASP.NET Core
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 78,086 Reputation points Volunteer Moderator
    2021-11-11T02:08:56.583+00:00

    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://learn.microsoft.com/en-us/aspnet/core/security/authentication/?view=aspnetcore-6.0

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.