What problem does it solve?
This Skill helps you implement correct authentication and authorization in ASP.NET Core without fragile, insecure, or hard-to-maintain patterns that break access control or mishandle tokens and secrets.
Core Features & Use Cases
- JWT and cookie authentication guidance: Choose the right scheme for APIs (Bearer/JWT) versus web apps (cookies) and configure token validation properly.
- Policy-based authorization design: Replace role-string checks with composable, testable authorization policies, including custom requirements/handlers.
- Authorization for real endpoints: Protect endpoint groups and individual routes while allowing explicit anonymous access where needed.
- Identity and external login patterns: Use ASP.NET Identity for user management and configure OpenID Connect for external identity providers.
Quick Start
Load the authentication skill, then ask an AI to propose a complete ASP.NET Core auth setup for your scenario (API vs web app) using JWT or cookies, policy-based authorization, and safe secret handling.