DEV Community

Discussion on: Using custom claims for Azure AD B2C roles

Collapse
 
sven5 profile image
Sven Glöckner

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.