Implementing A Custom Authorization Handler In ASP.NET Core | Permission Authorization - Part 3

Опубликовано: 02 Март 2025
на канале: Milan Jovanović
38,838
905

Get the source code for this video for FREE → https://the-dotnet-weekly.ck.page/per...
Want to master Clean Architecture? Go here: https://bit.ly/3PupkOJ
Want to unlock Modular Monoliths? Go here: https://bit.ly/3SXlzSt
Join a community of 1000+ .NET developers:   / milanjovanovic  

Authorization is an important topic to consider in an ASP.NET Core application. Along with authentication, it's the backbone of a reliable and secure application. In this video, I'm going to show you how to implement permission authorization. This is part 3 of a longer series on permission authorization, where I will show you how to implement a custom AuthorizationHandler to support authorizing endpoints using permissions.

Join my weekly .NET newsletter:
https://www.milanjovanovic.tech

Read my Blog here:
https://www.milanjovanovic.tech/blog

Subscribe for more:
   / @milanjovanovictech  

Chapters
0:00 Defining a custom PermissionAuthorizationHandler
4:21 How to verify if the current User has the required Permission
6:07 Defining IPermissionService and using it to complete PermissionAuthorizationHandler
8:22 Adding the IPermissionService implementation
10:51 Configuring the required services
11:51 Adding the mystery component - PermissionAuthorizationPolicyProvider
15:01 Permission Authorization in action (finally)