How to add new claims to claim array using foreach loop in C#?
I want to add new claims to a claim array in a foreach loop. How to do that?
I want to add new claims to a claim array in a foreach loop. How to do that?
In my ASP.NET Core MVC project, I have this scenario: a manager can do anything in the web application, you can call it super manager, and there is only one user. This “super” manager can add other managers that are more restricted, for example these managers cannot create users of type manager, or cannot see some information.
I have used OWIN authentication in my application.
Inspired by an article on custom claims, I’ve added a tenant id custom claim to my Identity server sign in process as follows: