dotnet-scaffold-auth-policy

Official

Scaffold cross-app authorization policies.

Authorumbrella-libraries
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Add a new named authorization policy to the shared project so that both server and Blazor client code can reference the same policy constants, enabling consistent access control and avoiding circular dependencies.

Core Features & Use Cases

  • Defines policy name constants in the shared Security.PolicyNames class and registers them via the shared AuthorizationOptions extension, ensuring centralized governance of access controls.
  • Allows applying policies across API controllers, Blazor components, and navigation items using standard RequireRole/RequireAssertion patterns.
  • Facilitates consistent policy scoping when features are added or reorganized, by keeping policy names and registration in a single shared location.

Quick Start

Add the policy constant in the shared policy names file and register it in the shared AuthorizationOptionsExtensions.

Dependency Matrix

Required Modules

None required

Components

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-auth-policy
Download link: https://github.com/umbrella-libraries/Umbrella/archive/main.zip#dotnet-scaffold-auth-policy

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.