auth - Implement modern authentication and security patterns
Provides framework-agnostic patterns for JWT, OAuth2, session management, RBAC, MFA, API security, and zero-trust architectures.
Tags
Updated: 2026-11-06Typical Inputs
Typical Outputs
What this skill does
- Generate JWT tokens
- Verify JWT tokens
- Hash passwords
- Integrate OAuth2 providers
- Manage refresh tokens
- Enforce role-based access
- Add multi-factor authentication
- Secure API endpoints
- Implement zero-trust patterns
- Authenticate WebSockets
- Create audit trails
Inputs
- User credentials
- JWT secret key
- OAuth2 client credentials
- Redirect URI
- OAuth2 scopes
- Authorization code
- OAuth2 state value
- Access tokens
- Refresh tokens
- Device information
- Roles and permissions
- MFA configuration
Outputs
- JWT access tokens
- Refresh tokens
- OAuth authorization URLs
- OAuth user profiles
- Password hashes
- Authentication results
- Revoked-token state
- Security logs
- Audit trails
Requirements
- Python runtime
- PyJWT package
- Passlib package
- Cryptography package
- HTTPX package
- OAuth2 provider credentials
- Network access to OAuth2 providers
