Auth Security
Implements modern OAuth 2.1 authorization flows, robust JWT token lifecycle handling, and defensive authentication patterns following RFC 9700.
Auth Security provides comprehensive implementation guidance for modern authentication and API authorization based on RFC 9700 (2025). It enforces OAuth 2.1 standards including mandatory PKCE, short-lived tokens, single-use refresh token rotation with reuse detection, and modern cryptographic signing with ES256 and EdDSA. Whether you are building backend token services, Single Page Applications, or securing REST APIs against CSRF, XSS, and algorithm confusion attacks, this skill equips Claude Code with production-ready security patterns and revocation strategies.
主要功能
01OAuth 2.1 authorization code flow with mandatory PKCE generation and exchange
02Secure client-side and server-side token storage patterns using HttpOnly cookies
03263 GitHub stars
04Modern JWT signing and strict verification using ES256/EdDSA and explicit algorithms
05Refresh token rotation with automated token theft and reuse detection
06Defenses against common exploits including algorithm confusion, CSRF, and XSS
使用场景
01Migrating legacy OAuth 2.0 flows (implicit and password grants) to OAuth 2.1 with PKCE
02Hardening JWT validation and token revocation mechanisms in Single Page Apps and microservices
03Building modern, standards-compliant authentication backends and token exchange endpoints