~/talk

Demystifying authentication in ASP.NET Core

Talkat NDC Copenhagen 2025 · 2025-09-08..09-12· [security]
slides:none on file

Explains how ASP.NET Core turns an incoming request into a user: the authentication middleware calls handlers (cookie, JWT, OIDC) that run five operations: authenticate, sign in, sign out, challenge, forbid. Cookie handler creates an authentication ticket (ClaimsPrincipal + properties), encrypts it into a cookie, and can split large cookies over 4KB. Gotchas covered: challenge vs redirect (calling ChallengeAsync then returning Redirect replaces responses) and logout paths/returnUrl semantics. Revokeable sessions require server-side session revocation.

AI-written summary · about

  1. 0:00ASP.NET Core auth intro
  2. 6:08Auth middleware user ID
  3. 11:24Auth handler core ops
  4. 22:55Sign in with claims
  5. 28:43Cookie contents on sign-in
  6. 33:19Sign out and challenges
  7. 41:01Stolen cookie risks
  8. 44:33Large claims cookie limits
  9. 47:05ASP.NET Core auth flow summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.