Home » Education » .NET 6 Web API 🔒 Read JWT Authorization Claims of a User (from a JSON Web Token)

.NET 6 Web API 🔒 Read JWT Authorization Claims of a User (from a JSON Web Token)

Written By Patrick God on Tuesday, Dec 21, 2021 | 06:33 AM

 
🚀 .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 📧 Newsletter: https://newsletter.patrickgod.com/ 💻 GitHub: https://github.com/patrickgod/JwtWebApiTutorial 🐦 Twitter: https://twitter.com/_PatrickGod ▶ [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:03 Recap of JWT & Role-Based Authorization 00:05:38 Read Claims in the Controller 00:12:19 Use Services & the HttpContextAccessor 00:15:25 Add the HttpContextAccessor 00:19:40 Quick Recap 00:22:37 Outro 🙏MANY THANKS TO THESE LOVELY PEOPLE: Thomas Werner 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