In this episode we dissect the mechanism behind Authorization - Policies. We explore the 3 main moving parts of Policies exposed to you:
NOTICE - UPDATED PLAYLIST
• ASP.NET Core Authentic...
Patreon 🤝 / raw_coding
Courses 📚 learning.raw-c...
Shop 🛒 shop.raw-codin...
Discord 💬 / discord
Twitter 📣 / anton_t0shik
Twitch 🎥 / raw_coding
👉 Try Rider
www.jetbrains....
RD5K9-4TXXW-KMV3G-NYWSF-3ZSTP
- 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: github.com/T0s...
#csharp #aspnetcore #auth
21 авг 2024