.NET 6 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT)

Patrick God

🚀 Join the .NET Web Academy: https://dotnetwebacademy.com

💖 Support me on Patreon: https://patreon.com/_PatrickGod
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: https://dotnet8.patrickgod.com
🚀 .NET Jumpstart Course: https://www.udemy.com/course/net-core-31-web-api-entity-framework-core-jumpstart/?referralCode=CA390CA392FF8B003518
🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-webassembly/?referralCode=647B4EAACD6D8E4E6872

💻 GitHub: https://github.com/patrickgod/JwtWebApiTutorial

▶ [Part 1/4] .NET 6 Web API 🔒 Create JSON Web Tokens (JWT) – User Registration / Login / Authentication: https://youtu.be/v7q3pEK1EA0
▶ [Part 2/4] .NET 6 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT): https://youtu.be/TDY_DtTEkes
▶ [Part 3/4] .NET 6 Web API 🔒 Read JWT Authorization Claims of a User (from a JSON Web Token): https://youtu.be/fhWIkbF18lM
▶ [Part 4/4] Refresh Tokens with a .NET 6 Web API 🚀: https://youtu.be/HGIdAn2h8BA

Table of Contents:
00:00:00 Intro
00:02:00 Recap of Creating JSON Web Tokens
00:06:28 The [Authorize] Attribute
00:09:54 AuthenticationScheme & Middleware
00:16:03 Add SwaggerUI Authorization
00:22:14 Add the Role
00:27:40 Quick Recap
00:28:59 Outro

🙏MANY THANKS TO THESE LOVELY PEOPLE:
István Csibor
Grant Burdon
@gianluigiconti
Gerrit Esmeijer
Illia
Németh-Pók István
Michael Mel
Marko Zdilar
GerryB
@DADA_universe
Domen Hren
@heroesch
Carey
Peter De Tender
Baris Keskin
Someone
@Big_Bear_27390
Mathias
walter e watkins
Günther Dassel
Axel
Josh
Daniel Huber
Fredric Adell
Juan Carlos
Manolis
Pajani
P.
Jonas Granlund
Someone
Bobby
Kristina
@xamarin007

#DotNet #WebAPI #PatrickGod