ASP.NET Core Identity & JWT Auth

0•

Implements secure ASP.NET Core Identity authentication with JWT access tokens, rotating refresh tokens, and Angular frontend integration.

This skill provides production-ready guidance for architecting authentication and authorization across ASP.NET Core Web APIs and Angular clients. It enforces decoupled, secure practices by using ASP.NET Core Identity strictly for user management and password hashing while issuing custom short-lived JWT access tokens and SHA-256 hashed, rotating refresh tokens stored in HttpOnly cookies with family revocation. Perfect for configuring clean N-layer architectures, preventing token reuse vulnerabilities, managing role-based access control, and wiring responsive Angular signal-based auth stores.

Key Features

01Frontend Angular AuthStore integration using modern signals, concurrent refresh deduplication, and HTTP interceptors
02Cookie-free ASP.NET Core Identity integration using AddIdentityCore without default UI overhead
03Secure credential transport using memory-stored access tokens and HttpOnly, Secure, SameSite refresh cookies
04Clean N-layer domain separation isolating Identity models from API controllers and business logic
050 GitHub stars
06Short-lived JWT access tokens paired with SHA-256 hashed, rotating refresh tokens and family reuse detection

Use Cases

01Setting up an end-to-end authentication system with register, login, refresh, and logout endpoints in ASP.NET Core
02Hardening API security with refresh token family revocation, brute-force lockout, and anti-enumeration error responses
03Connecting an Angular frontend application to a secure .NET backend with seamless token refresh and role-based guards