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

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,188 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 56,686 Reputation points
    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