permissions-and-authorization
Installation
SKILL.md
Authorization in ABP
ABP builds on ASP.NET Core authorization and adds a permission system: named permissions are defined in code, granted to roles/users/clients, and checked with the standard [Authorize] attribute or programmatic APIs. Ground everything below in the real APIs shown here.
When to Use
- Defining named permissions and permission groups in a
PermissionDefinitionProvider. - Protecting an application service, method, or MVC controller/action with
[Authorize("...")]. - Checking granted permissions programmatically via
IAuthorizationServiceorIPermissionChecker. - Reading the authenticated user (id, tenant, roles, claims) through
ICurrentUser. - Understanding how grants are stored/evaluated (role/user/client value providers, Permission Management module).
When Not to Use
- Access that depends on a specific entity instance ("can edit this document") — use the authorize-resources skill instead.
- Configuring the auth server / login / token issuance (OpenIddict) — use the configure-openiddict-authentication skill.
- Refreshing claims mid-session without re-login — use the configure-dynamic-claims skill.