.NET 7 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT) & the dotnet user-jwts CLI
Patrick God
0:00 / 0:00
.NET 7 Web API 🔒 Role-Based Authorization with JSON Web Tokens (JWT) & the dotnet user-jwts CLI
44 560 просмотров · 3 года назад
Patrick God
84,7 тыс. подписчиков
44 560 просмотров · 3 года назад
🚀 Free Blazor AI crash course: https://dotnetwebacademy.com/blazor-a...
---
💖 Support me on Patreon: / _patrickgod
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: https://dotnet8.patrickgod.com
💻 GitHub: https://github.com/patrickgod/JwtWebA...
💡 Udemy Online Courses:
🔥 Blazor E-Commerce Course: https://www.udemy.com/course/blazor-e...
🔥 Blazor Bootcamp: https://www.udemy.com/course/blazor-w...
🚀 Free Blazor AI crash course: https://dotnetwebacademy.com/blazor-a...
---
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