Community

Accessing and Extending Authorization Claims in ASP.NET Core and Blazor

(Peter Vogel) When you need to integrate authorization with procedural code, you’re going to need your application’s ClaimsPrincipal object so that you can check the user’s authorization claims. Here’s both how to get to the ClaimsPrincipal and how to extend it with custom claims.