.NET 7 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT) & the dotnet user-jwts CLI

🚀 Join the .NET Web Academy: https://learn.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
🐦 Let’s get social on Twitter/X: https://twitter.com/_PatrickGod
🔗 Let’s connect on LinkedIn: https://www.linkedin.com/in/patrickgod/
💻 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
🚀 .NET Jumpstart Course: https://www.udemy.com/course/net-core-31-web-api-entity-framework-core-jumpstart/?referralCode=DOTNET7

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