~/talk

ASP.NET Core Authentication and Authorization - the Key Concepts

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [dotnet, security]
slides:none on file

Clear, practical mapping of ASP.NET Core authentication APIs: how AuthenticateAsync/ChallengeAsync/SignInAsync/SignOutAsync/ForbidAsync behave across cookie, JWT bearer and OpenID Connect flows, and why scheme defaults cause unexpected redirects. Demonstrates a working demo app that wires cookie + OIDC + JWT bearer, shows logout must tear down both local cookie and upstream session, and exercises API 401/403 behavior. Calls out real-world impact: about half of support cases stem from these fundamentals and ~30% trace to misconfigured data protection key storage.

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Authentication vs authorization
  3. 2:56ASP.NET Core auth API methods
  4. 6:08Cookie auth flow
  5. 8:16Bearer token API auth
  6. 11:30Auth middleware setup
  7. 13:37Remote auth handlers & sessions
  8. 15:44Auth schemes in code
  9. 19:36Default schemes & fallback
  10. 20:19Live demo: cookie auth
  11. 22:31Sign in with claims
  12. 25:27Testing auth API methods
  13. 27:15OpenID Connect auth
  14. 29:54Sign-out for external providers
  15. 31:39Authorization policies
  16. 35:35Custom auth requirements
  17. 37:03Custom policy demo
  18. 39:46Default challenge scheme
  19. 41:19ASP.NET Identity intro
  20. 43:06ASP.NET Identity services
  21. 44:35External auth callback
  22. 47:06User login & migration
  23. 47:50Data Protection in ASP.NET
  24. 50:17Data Protection config
  25. 51:40Live demo: Data Protection
  26. 53:28Bearer token API auth demo
  27. 54:55Summary
~/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.