From the course: ASP.NET Core Identity: Authorization Management

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Adding claims checks

Adding claims checks - ASP.NET Core Tutorial

From the course: ASP.NET Core Identity: Authorization Management

Start my 1-month free trial

Adding claims checks

- [Instructor] Claims based authentication, is another authentication type in .NET Core which is used to check if a user has a certain claim, or not. Now a claim is an assertion of truth of something, so basically by using claims based authentication, we check if users are who they claim they are. So a claim for example would be the age, gender, the birth place, the role within a company, et cetera. As we can see, a single claim might or might not be unique to only one individual. It is important to mention that the claim issuers need to be trusted sources. So for example in a real life application, government would be an issuer. Because they issue driving licenses, identity cards, et cetera which are a trusted source of information, and the simplest version of the claims based authorization. Would be just checking the value of a claim and allowing access to a resource based upon that value. Let us go to Visual Studio, and see how we can implement claims based authorization. Inside…

Contents