JWT Authentication with .NET 9 π Full Course with Roles, JSON Web Tokens & Refresh Tokens
π Make 2025 count! Join the .NET Web Academy here: https://dnwa.net/4fR26wb
---
π Get the complete Source Code here: https://dnwa.net/3Pnqo6a
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