auth-policies
CommunityPolicy-based authorization design for .NET apps.
AuthorFaysilAlshareef
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Centralize and streamline authorization logic in .NET applications by using policy-based approaches, custom requirements, and dynamic policy provisioning to enforce consistent access control.
Core Features & Use Cases
- Policy-based authorization patterns: Define custom IAuthorizationRequirement and IAuthorizationHandler pairs and enable dynamic policy creation for permission-based access.
- Resource-based authorization: Implement resource ownership checks to restrict actions to the correct user.
- Integration & usage: Register a dynamic policy provider in DI and apply permissions to endpoints using attributes or minimal APIs.
Quick Start
Define your permission constants, register the dynamic policy provider in DI, and annotate endpoints with the HasPermission attribute to enforce access.
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: auth-policies Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#auth-policies 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 471,000+ vetted skills library on demand.