ASP.NET Core 3 - Authentication - Ep.3 Authorization (All about Policies and Claims)
Raw Coding
In this episode we dissect the mechanism behind Authorization - Policies. We explore the 3 main moving parts of Policies exposed to you:
- AuthorizationPolicy (Created by using an AuthorizationPolicyBuilder)
- IAuthorizationRequirement (This is your request for a specific type of authorization)
- AuthorizationHandler (This is the function which knows how to process the requirement)
Roles are just claims. rant over. Why have them? the concept of a role is more familiar than a claim to a human. For example what is easier to understand? - "What is your Role?" or "What do you claim to be?"
Source: https://github.com/T0shik/aspnetcore3-authentication
Shop π https://shop.raw-coding.dev Twitch π₯ https://www.twitch.tv/raw_coding Discord π¬ https://discord.gg/R9A8yq4 Github ποΈ https://github.com/T0shik Twitter π£ https://twitter.com/anton_t0shik Instagram π€³ https://www.instagram.com/anton_t0shik/
Patreon π https://www.patreon.com/raw_coding Donate π https://streamelements.com/raw_coding/tip Linode π https://www.linode.com/rawcodingβ
#csharp #aspnetcore #auth ... https://www.youtube.com/watch?v=RBMO_hruKaI
83100642 Bytes