Stateless JWT Authentication C# .NET

preview_player
Показать описание
Implementing JSON web tokens (JWT) for stateless authentication & authorization as an alternative to the new .NET 8 Identity Endpoints using bearer tokens.

If you found this video helpful, like & subscribe! That means a lot to me!

00:00 Intro
00:37 Project Setup
05:10 Register User
12:49 Confirm Email
14:25 Login
16:05 Create Refresh Token
19:55 JWT Access Token
22:38 Inspect JWT
23:30 Current User Info
26:55 Forged JWT Experiments
28:00 Admin Protected
28:40 Recap
29:00 Refresh Tokens
37:23 Outro 1
38:13 Final Recap
38:40 Frontend?
39:20 Outro 2

#dotnet #csharp #webapi #serilog #logging #monitoring #api #webdevelopment #fullstack #fullstacksoftwareengineering #backend #docker #azure #containerization #devops #cloud #microsoft #entityframework #identityframework #mssqlserver #mssql #cleanarchitecture #authentication #development #local #web #fullstack #authorization #jwt #bearer #cqrs #mediatr #cors #http #stateless #webscraping #workers #migration
#development #blazor #wasm #pwa #progressivewebapps #webapp #webassembly #seo #rendering #client #render #server #prerendered #googlesearch #modular #monolith #verticalslicearchitecture #minimalapi #dotnet8
Рекомендации по теме
Комментарии
Автор

Great video! I have one question, when you use refresh token endpoint you pass the access token and refresh token as parameters, but in the code you use only the access token to get the userId and also the RefreshToken value, so why do we need the refresh token?

orlandomalo
Автор

In the first part which is project setup part, you dont open jwtconfig.cs, can i get the code of this file?

khauvannam