~/talk

Deep down in Blazor authentication and authorization

Talkat DotNext 2020 Moscow · 2020-12-02..12-05· [dotnet]
links:none on file
slides:none on file

Deep dive into Blazor security shows concrete wiring: Blazor WebAssembly uses IdentityServer4 and the JavaScript OIDC-client.js library, the runtime implements a RemoteAuthenticationService/AuthenticationStateProvider and an AuthorizationMessageHandler to fetch and attach access tokens to HTTP calls. Demo reuses the same components for server and WASM, calls a protected Weather API, and exposes roles via tokens — then fixes a bug where role arrays arrive as a single string by adding a custom ClaimsPrincipal factory. Ends with a permission-based policy library and notes on PWA/offline behavior.

AI-written summary · about

  1. 0:00Start
  2. 0:42Authorization and Authentication
  3. 4:31Authorized View
  4. 5:42Authorized Attribute
  5. 6:04The Authorizer Root View
  6. 7:50The Authentication State Provider
  7. 8:57Blazer Server
  8. 11:02Which Are the Providers That Are Supported than in Blazer Server
  9. 13:43Adding an Authentication State Provider
  10. 15:59Identity Server
  11. 16:25Oidclient Js
  12. 21:33Redirect Uri
  13. 25:38Redirect To Login Component
  14. 26:22Access Token Provider
  15. 27:57Authorization Message Handler
  16. 42:20Weather Api
  17. 52:34Refactoring Permissions
  18. 53:53Permissions
  19. 59:00Add Permission Policies
  20. 1:00:59Authorization Policy Provider
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.