🚀 Join the .NET Web Academy: [ Ссылка ]
💖 Support me on Patreon: [ Ссылка ]
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: [ Ссылка ]
🐦 Let's get social on Twitter/X: [ Ссылка ]
🔗 Let's connect on LinkedIn: [ Ссылка ]
💻 GitHub: [ Ссылка ]
💡 Udemy Online Courses:
🔥 Blazor E-Commerce Course: [ Ссылка ]
🔥 Blazor Bootcamp: [ Ссылка ]
🚀 .NET Jumpstart Course: [ Ссылка ]
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
Ещё видео!