.NET 7 Web API Role-Based Authorization with JSON Web Tokens (JWT) & the dotnet user-jwts CLI
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
GitHub: https://github.com/patrickgod/JwtWebApiDotNet7
Udemy Online Courses:
Blazor E-Commerce Course: https://www.udemy.com/course/blazor-ecommerce/?couponCode=YOUTUBE
Blazor Bootcamp: https://www.udemy.com/course/blazor-webassembly/?referralCode=647B4EAACD6D8E4E6872
Join the .NET Web Academy: https://dotnetwebacademy.com
โ
Table of Contents:
00:00 .NET 7 Web API Role-Based Authorization with JSON Web Tokens
00:12 Secure Your Web API with the [Authorize] Attribute
02:49 Configure Your Web API to use JSON Web Tokens
05:26 Use the new dotnet user-jwts CLI of .NET 7
10:20 First Test with Swagger
10:37 Configure Swagger to provide a JWT
13:25 Use a Token from the dotnet user-jwts CLI
14:00 Add Roles
16:50 Validate the Issuer Signing Key
22:28 Set a Role using Claims
#PatrickGod #DotNet #JWT