~/talk

Demystifying authentication in ASP.NET Core

Talkat Øredev 2024 · 2024-11-06..11-08· [security]
slides:none on file

Demo uses ASP.NET Core 8 middleware and cookie handler to show that authentication is implemented as a claims principal built from an authentication ticket that the cookie stores, encrypted by the data protection API. The cookie handler implements five operations (authenticate, sign in, sign out, challenge, forbid). Replacing the protector with a no‑op exposes the ticket so the claims can be inspected, and copying the cookie between browsers proves sign‑out merely deletes a client cookie; fix demonstrated is a session store backend to revoke sessions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Talk goal
  3. 3:53Request pipeline
  4. 8:12Auth middleware ops
  5. 12:32Auth schemes roles
  6. 15:04User login in ASP.NET Core
  7. 21:10Sign-in operation
  8. 22:35Cookie contents
  9. 27:39Security implications of stolen authentication cookies
  10. 29:11User sign-out in ASP.NET Core
  11. 33:24Logout path quirks
  12. 36:21Cross-browser sign-out
  13. 38:41Session-based cookies
  14. 40:04Summary
~/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.