CLAIMS-BASED AUTHORIZATION ASP.NET CORE || Claims,ClaimsPrincipal,ClaimsIdentity Explained in 10 Min
CLAIMS-BASED AUTHORIZATION ASP.NET CORE || Claims,ClaimsPrincipal,ClaimsIdentity Explained in 10 Mins.
#ClaimsAuthentication
#Claims #ClaimsPrincipal #ClaimsIdentity #Roles
A Claim is a piece of information about the user. It is consists of a Claim type and an optional value. We store it in the form of name-value pair. A Claim can be anything for example Name Claim, Email Claim, Role Claim, PhoneNumber Claim, etc.
The claims-based authorization works by checking if the user has a claim to access an URL.
In ASP.NET Core we create policies to implement the Claims-Based Authorization. The policy defines what claims that user must process to satisfy the policy. We apply the policy on the Controller, action method, razor page, etc.
A User can have any number of claims. The Identity API stores the claims in the AspNetUserClaims table.
💯 Watch our Previous Video on how to Create Claims
https://youtu.be/Nm_LZJ6jsSY
💯 Watch our Previous Video on .NET MAUI CRUD OPERATION Using SQLITE
https://youtu.be/f1QOyJclp54
💯 Use the following link as well to subscribe. https://youtube.com/@MacroCoding?sub_…
💯 Remember to Buy Me Coffee
https://www.buymeacoffee.com/macrocode
❤️ Thanks for watching. Share, Subscribe, Like and Comment Down Below
Comments are closed.