What problem does it solve?
Authentication and authorization setup in ASP.NET Core often becomes inconsistent, insecure, or hard to maintain; this Skill provides clear patterns for securing APIs and apps with the right token and authorization approach.
Core Features & Use Cases
- JWT bearer authentication for APIs: Validate issuer, audience, lifetime, and signing keys so clients can safely call protected endpoints.
- ASP.NET Identity for user management: Handle password hashing, lockout, two-factor, and email confirmation without building a custom user store.
- OpenID Connect for external login: Integrate external identity providers for code-based sign-in flows.
- Policy-based authorization: Replace fragile role strings with composable policies that support roles, claims, and custom requirements.
- Cookie vs JWT guidance: Use cookies for web apps (e.g., Blazor/MVC) and Bearer tokens for REST APIs.
Quick Start
Use the authentication skill when designing how users sign in and how your ASP.NET Core endpoints decide what they are allowed to access.