Hi Pradeep, thanks for your reply.
It's possible to apply the same claim type multiple times to a ClaimsPrincipal. So that means you could easily write some code to set multiple roles on your user.
However, the AuthorizeAttribute cannot check multiple roles at the same time. You could write your own attribute that checks for combination of roles. See this article on stackoverflow.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Pradeep, thanks for your reply.
It's possible to apply the same claim type multiple times to a
ClaimsPrincipal
. So that means you could easily write some code to set multiple roles on your user.However, the
AuthorizeAttribute
cannot check multiple roles at the same time. You could write your own attribute that checks for combination of roles. See this article on stackoverflow.