ASP.NET Core Cookie & JWT Authentication Combined

preview_player
Показать описание
How to authenticate an ASP.NET Core application with both JWT tokens and cookies. In addition we learn how to load the same identity in to the jwt as identity framework loads in to the cookie.

#aspnetcore #authentication #csharp
Рекомендации по теме
Комментарии
Автор

After going through documentation, tutorials and videos, finally found a good solution! Thank you.

ahcorso
Автор

Anthon the goat, very much appreciated!.

saifeddinebenromdhane
Автор

This is guy is really good. He know his authentication stuff 😎

Retrosmusic
Автор

What tool are you using to parse the cookie information?
@2:58 you show the parsed cookie information in the left pane and the dev tools on the right. How did you do that?.
Also I built this project up to the point you test the cookie for the first time. But my build doesn't produce a cookie. Am I testing too soon or should see a cookie at this point in the training?
Thank you!! 👍

BusaFurian
Автор

Very instructive, thank you very much :)

mselmi
Автор

Another great video - as a suggestion slowing down a little bit might help some viewers 👍

dwhxyz
Автор

I tred this with controllers, when i use [Authorize] for unauthenticated user, it returns 404 instead of 401 why ? ( it works when user is logged in )

ragnadrok
Автор

HI Anton, why User.Claims get empty when set If I remove this then it will claims work normal. Also can we keep the both authentication? Cookie for Razor page and jwt for api to consume into another application and need to provide access token to access api.

prathameshshende
Автор

you made the video, thank you very much

AhmedMohammed
Автор

Awesome video!! Could you tell us about the editor you are using? also tell us how you configured C# project using that editor. Thanks

thirusarikonda
Автор

good video to grasp the idea, but i feel you kind of over simplified the security concerns. any cookie based authentication, you should have a strong CSRF policy, CSP policies, as well as the strict CORS settings.

berkanbilgin
Автор

Why your name is Anton? do you have Slavonic roots?

firsttryop
Автор

Its so frustrating to type the same comment twice only to have it automatically ghosted.

dwhxyz