🔐 ASP.NET Core Authorization: Role-Based Access Control (RBAC)

Опубликовано: 16 Март 2026
на канале: Saeed Esmaeelinejad
3,393
88

In this video, I show you how to implement Authorization using Role-Based Access Control (RBAC), I covered both minimal API and Controller-Action.

Check the code here:
Repo: [RoleBasedAuthorization] https://github.com/sa-es-ir/youtube-s...

Moments

00:00 - Intro
00:47 - The code base
02:35 - Call the API
03:05 - Generate JWT token using user-jwts command
04:38 - Adding rule as a claim into the token payload
06:25 - Adding custom claim based on Username into current Identity

#aspnetcore #authorization #rbac #dotnet
---------------------------------------------------
Follow me on LinkedIn:
  / sa-es-ir