dotnet-scaffold-resource-auth-handler
OfficialScaffold a resource-level ASP.NET auth handler
Authorumbrella-libraries
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Scaffold a resource-based ASP.NET Core IAuthorizationHandler to enforce row-level access control for a given entity, incorporating ownership checks (e.g., AppUserId) and operation-specific logic based on user roles.
Core Features & Use Cases
- Provides an internal sealed class pattern that derives from AuthorizationHandler<OperationAuthorizationRequirement, TEntity> with a HandleRequirementAsync implementation.
- Supports operation-specific logic for CoreItemOperations.Create, Read, Update, and Delete to enforce ownership or admin overrides.
- Includes guidance to enable checks on the controller or controller service by removing suppression overrides and to register the handler in DI.
Quick Start
Remove the suppression override for the targeted authorization checks in your controller or service, and register the handler in DI.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: dotnet-scaffold-resource-auth-handler Download link: https://github.com/umbrella-libraries/Umbrella/archive/main.zip#dotnet-scaffold-resource-auth-handler Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.