What problem does it solve?
This Skill provides a ready-to-use JWT authentication and authorization layer for ASP.NET Core APIs, reducing boilerplate and improving security by standardizing token issuance, validation, and access control.
Core Features & Use Cases
- Token generation and validation for protected endpoints
- Refresh token support and claims-based authorization
- Password hashing and user claims handling for secure identity management
- Use Case: Secure a public API by issuing JWTs to authenticated users and enforcing role-based access
Quick Start
Run these steps to enable JWT authentication in your ASP.NET Core project:
- Add Jwt infrastructure (JwtTokenGenerator, JwtTokenValidator, PasswordHasher, etc.) to your project
- Configure JwtSettings in appsettings.json and register the settings in DI
- Wire up authentication and authorization in Program.cs and protect endpoints with [Authorize]