~/talk

ASP.NET Core Authentication and Authorization - the Key Concepts

Talkat NDC Oslo 2024 · 2024-06-10..06-14· [security, web-platform]
slides:none on file

Distills how ASP.NET Core actually wires identity: the HTTP context user comes from the default authentication scheme, and the five core APIs AuthenticateAsync/ChallengeAsync/SignInAsync/SignOutAsync/ForbidAsync behave differently for cookies vs bearer tokens (redirects and 401/403). Explains schemes and defaults, why ASP.NET Identity creates identity.application and identity.external cookies, shows an app wired to OpenID Connect + IdentityServer that issues access tokens (API validates them), warns to configure Data Protection key persistence, and mentions refresh tokens via Duende Access Token Management.

AI-written summary · about

  1. 0:00Introduction
  2. 1:09Authentication vs authorization
  3. 3:39Core auth APIs
  4. 9:27HTTP context user
  5. 11:11Remote auth handlers
  6. 13:45Auth schemes and providers
  7. 17:38Default schemes hierarchy
  8. 18:25Authorization policies
  9. 23:02ASP.NET Identity overview
  10. 26:34Identity cookie schemes
  11. 29:02Identity user structure
  12. 30:27Data protection basics
  13. 34:08Demo setup
  14. 35:11Explicit data protection
  15. 36:36Cookie auth and login
  16. 38:48Fixing auth quirks
  17. 42:03OpenID Connect auth
  18. 43:10Default auth schemes
  19. 44:15Testing OpenID Connect
  20. 45:42API auth with tokens
  21. 46:23Single sign-on and single sign-out challenges
  22. 48:09Authorization policy
  23. 49:16Testing auth and roles
  24. 50:44Complex authorization
  25. 52:56Summary
  26. 54:05Q&A
~/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.