~/talk

Getting Authorization Right in .NET: Patterns, Pitfalls...

Talkat NDC Security 2026 · 2026-03-02..03-05· [security]
links:none on file
slides:none on file

Concrete .NET code demos show policy creation, custom IAuthorizationRequirement handlers with DI, and minimal APIs and authorization handlers wired into routes; a live Policy Server demo and JSON-backed external policy handler illustrate centralizing decisions (no token bloat), with examples of role explosion (hundreds of roles), caching/invalidation concerns, and step‑up auth via a recent‑login policy. Razor UI uses a tag helper that hides buttons by querying the policy, and feature‑area routing demonstrates per‑route permission evaluation—practical if you want implementation patterns not theory.

AI-written summary · about

  1. 0:00Authorization challenges in .NET
  2. 5:28AuthN vs AuthZ separation
  3. 9:44Default ASP.NET Core policies
  4. 12:51Demo: Razor Pages security
  5. 19:12Demo: API security with minimal APIs
  6. 23:45Reusable authorization policies
  7. 31:17AuthZ requirements with DI
  8. 34:45Externalizing authZ policies
  9. 41:50Demo: JSON policy evaluation
  10. 45:24UI authZ and step-up authN
  11. 56:34Demo: UI feature authZ with tag helpers
  12. 1:03:21Enterprise-scale authZ design
~/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.