You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A zero-friction authentication & authorization toolkit for ASP.NET Core with JWT Bearer, API Key, Refresh Tokens with rotation, and dynamic claim policies — all wired up with a single fluent call.
Why AspNetCoreAuthKit?
Every ASP.NET Core project ends up writing the same boilerplate:
JWT configuration, API Key middleware, refresh token logic, claim-based policies.
AspNetCoreAuthKit wraps all of this into a clean, testable, opt-in abstraction.
✨ Features
🔐 JWT Bearer — generate, validate and refresh tokens with one method call
🔑 API Key — header or query string, static list or custom async validator
♻️ Refresh Tokens — token rotation, revoke single device or all devices
🛡️ Dynamic claim policies — [RequireClaim("role", "admin")] without manual registration
📋 Common policies — AdminOnly, AuthenticatedUser, ApiKeyOrJwt out of the box
🔀 Multi-scheme — JWT and API Key in parallel on the same app
🧩 Extensible — plug in your own IRefreshTokenStore (Redis, EF Core, etc.)
🧪 DI-ready — every module is opt-in, nothing is registered unless you ask
Zero-friction authentication and authorization toolkit for ASP.NET Core. Provides JWT Bearer, API Key, Refresh Tokens with token rotation, and dynamic claim policies — all wired up with a single fluent AddAuthKit() call. Every module is opt-in with no unnecessary overhead.