Santhoshkumar
Santhoshkumar

Reputation: 13

Dot Net core 7 API including Identity, Dynamic role, claims in Repository pattern and UnitofWork

let me correct if the question is inappropriate or not relevant.

I have created Dot net core applications separately using Identity. Separately for Repository pattern. Now tried to create roles dynamically by combining both Identity and Repository pattern.

In detail: I want to create an API application with following components included.

  1. Identity
  2. Manage roles dynamically (store roles in AspNetRoles, Role names should not be hard-coded or should not have enum classes inside the application)
  3. User/Role claims.

I am confused to how to start and implement dynamic Roles, claims in .NET core API.

Normally, we will create customized models for Roles, Users, Menus. Then fetch the menu navigation items according to role assigned the user. But in .Net core with Identity, I could not figure out the exact way to achieve this.

Upvotes: 0

Views: 116

Answers (0)

Related Questions