~/talk

Authentication and Authorization in Blazor

Talkat NDC London 2021 · 2021-01-25..01-29· [security]
links:none on file
slides:none on file

Shows a working Blazor Server and Blazor WebAssembly security stack that uses IdentityServer4 plus ASP.NET Core Identity and oidc-client.js to authenticate, and demonstrates requesting access tokens and calling a protected Web API with an automatic AuthorizationMessageHandler. Exposes a surprising one gotcha: role claims arrive as a JSON array and require a custom AccountClaimsPrincipalFactory to split them. Builds a centralized permission model backed by a permissions JSON file and middleware, and the demos run end to end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:22Agenda
  3. 3:09Object Model
  4. 4:48Authorization Root View
  5. 6:28Authentication State Provider
  6. 7:44Blazor Server
  7. 9:48Providers
  8. 10:16Demo
  9. 14:15Blazor Web Assembly
  10. 17:56Supported Providers
  11. 18:30Blazor
  12. 23:33Access Tokens
  13. 25:49How it works
  14. 31:49Roles
  15. 33:47Implementing Roles
  16. 38:44Blazor Claims Principle Factory
  17. 42:42The Problem with Roles
  18. 48:04The Solution
  19. 48:44Identity Server
  20. 49:19Weather API
  21. 49:49Permissions middleware
  22. 50:34Blazor example
  23. 51:59Blazor authorization policy provider
  24. 53:09Blazor custom array claims
~/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.