JWT Refresh Token with Asp.net Web API 8 and C#

preview_player
Показать описание


⏱️VIDEO CHAPTERS⏱️⏱️
00:00 - Intro
00:16 - Project Structure Explain
04:13 - What is a Refresh token
06:40 - Simple Refresh Token Implementation
14:03 - Making the refresh Token secure
35:56 - Clockskew

Learn how to implement secure authentication for your ASP.NET Core Web API application using ASP.NET Identity and JSON Web Tokens (JWT) and refresh the tokens after expirations without asking the users to send their username and password again.

Test the Expiration of a token and explain the strange behavior of token expiry and Clockskew property.

#csharp #dotnet #aspdotnetcore #webapi #identity #jwt #RefreshToken
Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial. I'm one of those expecting the video about requesting another token based on the initial token and the refresh token. Thanks in advance.

marceloleoncaceres
Автор

Great video! It helps me a lot to understand this topic!

augustorobles
Автор

Great video! 👌 The details and explanations provided were excellent 🤓. Thank you for sharing it, and I am looking forward to the next one. 😊

hesamkalhor
Автор

Great video, thanks. You explained everything very well and made it easy to understand.

Drikus
Автор

Thanks a lot for that awesome video. you discussed the topics I was looking for like
Using Refresh Token with Jwt Token
What if the user disabled from backend or database and he already authenticated in the frontend app

You awesome.Keep going

Tamer_Ali
Автор

Thanks a lot!
How to refresh token automatically?

Автор

Can I request access and refresh tokens with JWT using cookies instead of JWT bearer? Instead of reading the bearer token on every authorized controller, you read the JWT inside the access token cookies. If it expires, you check the refresh token and generate a new access token. I know how to do this with Node but don't know how in .NET Core.

zedshockblade