Войти
  • 131332Просмотров
  • 11 месяцев назадОпубликованоPatrick God

JWT Authentication with .NET 9 🚀 Full Course with Roles, JSON Web Tokens & Refresh Tokens

🚀 Master .NET & Blazor in 2026 here: --- 📑 Get the complete Source Code here: 00:00 - Introduction 02:24 - Creating the User Entity 05:23 - Adding a Data Transfer Object (DTO) 06:37 - Building the Authentication Controller 08:59 - Implementing Password Hashing 12:50 - Introducing Scalar for API Testing 15:30 - Implementing the Login Endpoint 19:52 - Generating JWT Tokens 31:13 - Adding Entity Framework Core and Database Context 36:22 - Adding Code-First Migrations 38:25 - Refactoring with a Service Layer 47:40 - Securing Endpoints with [Authorize] 54:00 - Adding Roles to the User Model 59:00 - Implementing to Refresh Tokens 1:10:30 - Creating the Refresh Token Endpoint