gateway-security
CommunitySecure your gateway with robust JWT and policies.
AuthorFaysilAlshareef
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Securing gateway endpoints with consistent authentication and authorization reduces misconfigurations and security gaps across microservices, ensuring a unified security posture.
Core Features & Use Cases
- JWT authentication integration: AddJwtAuthentication extension configures JWT Bearer authentication from the Jwt section of the configuration.
- Policy-based authorization: AddPolicies extension registers policies and handlers to enforce ApiScope-based access and custom requirements across gateway endpoints.
- Centralized security primitives: Policy constants, Roles constants, and Authorization Handlers provide reusable, testable security primitives for controllers and actions.
- Flexible integration patterns: Demonstrates default [Authorize], policy-based [Authorize(Policy = ...)], and role-based [Authorize(Roles = ...)] usage across controllers.
Quick Start
Configure your gateway to enable JWT authentication and policy-based access by wiring AddJwtAuthentication and AddPolicies in startup.
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: gateway-security Download link: https://github.com/FaysilAlshareef/dotnet-ai-kit/archive/main.zip#gateway-security 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.