ASP.NET Core Cookie Authentication (.NET 7 Minimal Apis C#)

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


🕰 Timestamps
00:00 Introduction
01:02 MVC Example
07:56 Cookie Attributes
09:27 Cookie Name
11:03 Cookie Value
12:55 JS Example
16:18 Domain & Path Attributes
19:25 Http Only Attribute
21:36 Secure Attribute
22:14 Same Site Attribute
24:40 Expires/Max-Age Attribute
29:24 Sliding Expiration
30:38 Internals
42:17 Sign Out

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

This is great! Thank you. VS has also recently been able to decompile - we finally got it :)

piotrc
Автор

The way you talk and explain things are really cool, easy to understand. Perfect!

hkorasch
Автор

Thanks for taking the time to explain this in detail. Loved it!

baljeetbhinder
Автор

Really appreciate these in depth explanations, keep doing great Anton!

alfredoperez
Автор

I have to say you are way better in these videos. I think the reason is you are more calm. In previous videos you say lot of stuff continuously and it is hard for audience to catch what you are saying. And it is much better when you don't fouce the audience to follow best practices that you think are the best.

lasindunuwanga
Автор

Flabbergasting explanation, thank you.

enamipuff
Автор

Dear Anton, I hope you are doing well. I love the way you teach. I chose your videos out of all the huge learning I had to do. 
I have a question (and several more as I go along): Why are my cookies being reissued without setting a SlidingExpiration to true? I'm using Edge Version 120.0.2210.121 and vscode with .Net SDK 8. It seems that the SlidingExpiration default value is true.

QVMaster
Автор

Hey Anton, it owuld be good to increase the size of the code it's hard to read on a mobile

bramburn
Автор

an idea for your next video in this series - a cross site scripting attack the full demo story (based on the story you mention at 20:00). It will be a hit!

lukedjuuuu
Автор

in 46:18 you attach external dll in your debugging How we do that in visual studio ?
as you know in some cases I need to debug in other's dlls or packges to see behaivour

abuzeromohammed
Автор

Hey anotn, i'm wondring is the playlist ordered correctly?
cuz i'm seeing some 5 months ago video followed by 8 months followed by 1 month.. and so on

_
Автор

great stuff as always, bell is clicked! :P do you know of a scenario where cookie is not cleared even though server sends the header with "cookie=;"? Our playwright tests have some troubles with that

Qrzychu
Автор

How do you attach debugger to a specific process? Can you show us how to do that in Rider with Resharper ? Thank you

MinhNguyen-zxme
Автор

Amazing…
Thanks for this video sir.
Can you please make Video on the best way to use HttpClient and get the Cookie from HttpClient after Login? Please 😊

lerocher
Автор

@21:26 you wanted to say "never set that flag to false" ?

Shield_Jaguar
Автор

these cookies are stored on the server right? so if the client makes a request to a different server they would have to log in again?

PetersExcapades
Автор

(21:30) "...never really want to set that flag to true..."

Don't you mean "never want to to set it to false"? Surely you meant to say that we *do* want to make cookies http only unless we have a good reason otherwise, no?

ThisCanNotBTheFuture
Автор

Hey, just wondering are you Portuguese?

joaofelix