Flexible Authorisation with ASP.NET Core 7.0
summary
Shows a working Blazor WebAssembly app on ASP.NET Core that first adds an Auditors role the hard way — edit client nav and pages, update server controllers, deploy — then replaces that with permission‑based control using a bit‑flag permissions enum, permissions stored in a permissions claim, and a dynamic policy provider that generates policies like "permissions:7" at runtime. Includes a UI to assign permissions to roles, a PermissionAuthorizationHandler that enforces checks on server and client, and the demo proves the flexible approach works and reduces code churn.
AI-written summary · about
chapters (10)
- 0:00Introduction
- 0:30Overview
- 2:50Examples
- 7:23Adding a Role
- 13:42Flexible Authorisation
- 22:39Flexible Authorisation Engine
- 26:04Permissions
- 28:44Flexible Authorization Policy Provider
- 33:49Summary
- 35:27Outro
related talks
51mDeveloping Flexible Authorisation Capabilities in ASP NET Core
47mDeveloping Flexible Authorisation Capabilities in ASP.NET Core
57mAuthentication and Authorization in Blazor
56mImplementing authorization in web applications and APIs
01h 07mGetting Authorization Right in .NET: Patterns, Pitfalls...
58mImplementing Authorization in Web Applications and APIs
54mAuthorization for modern Applications
51mAuthentication and Authorization in ASP.NET Core 2
