aspnetcore-authorization
ASP.NET Core authorization patterns including policy-based authorization, IAuthorizationHandler implementations, scope-based authorization for APIs, authorization middleware configuration, and minimal API authorization.
Install
With your agent
Install OMGSkills skill "duendesoftware/duende-skills:skills/aspnetcore-authorization" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.
Manual command
git clone https://github.com/DuendeSoftware/duende-skills /tmp/duende-skills && ln -s /tmp/duende-skills/skills/aspnetcore-authorization ~/.claude/skills/aspnetcore-authorization
From README
ASP.NET Core Authorization When to Use This Skill Use this skill when: Implementing policy-based authorization in ASP.NET Core Protecting API endpoints with scope-based or claim-based checks Writing custom IAuthorizationHandler implementations Configuring authorization for Minimal APIs, controllers, or Razor Pages Enforcing role-based access control using OIDC claims Combining multiple authorization requirements into composite policies Core Principles Policy-Based Over Role-Based — Use authorization policies instead of [Authorize(Roles = "...")]. Policies are composable, testable, and decoupled from claim types. Scope ≠ Permission — OAuth scopes represent what the client is allowed to do. User claims represent what the user is allowed to do. Combine both for proper API authorization. Authorization is Separate from Authentication — Authentication (see aspnetcore-authentication) establishes identity. Authorization decides access based on that identity.
More from this repo
aspnetcore-authentication
ASP.NET Core authentication middleware configuration including OpenID Connect, JWT Bearer, cookie authentication,...
claims-authorization
Claims transformation and profile service patterns for Duende IdentityServer — IProfileService, IClaimsTransformation,...
duende-bff
Duende BFF (Backend for Frontend) security framework for securing SPAs.
