What problem does it solve?
Provides clear, opinionated guidance to implement secure authentication and authorization in ASP.NET Core projects, removing guesswork about JWT, OpenID Connect, cookie auth, and policy design while preventing common mistakes like storing secrets in code or skipping token validation.
Core Features & Use Cases
- Authentication Patterns: Step-by-step recommendations for JWT bearer tokens, cookie authentication for web apps, and OpenID Connect integration with external identity providers.
- Authorization Strategies: Policy-based authorization examples, custom requirements and handlers, role and claim management, and endpoint protection patterns for minimal APIs and grouped routes.
- Security Best Practices: Token generation and validation guidance, secure secret management, anti-patterns to avoid, and a decision guide for choosing the correct approach for REST APIs, Blazor/MVC, multi-tenant systems, and API-to-API scenarios.
Quick Start
Configure JWT bearer authentication with validated issuer, audience, signing key, and lifetime settings, register policy-based authorization and use ASP.NET Identity for user management.