securing-auth-routes - Securing Auth Routes with CSRF and Rate Limiting
Protects authentication endpoints with CSRF protection, rate limiting, HTTPS enforcement, and brute force mitigation
Tags
Updated: 2026-03-26Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Generate CSRF token
- Validate CSRF token
- Rate limit endpoints
- Redirect HTTP to HTTPS
- Set security headers
- Check brute force
- Log failed attempts
Inputs
- Flask application
- Authentication endpoints
- User credentials
- Session storage
- IP address
- Redis store
Outputs
- HTTP responses
- Security response headers
- Failed authentication logs
Requirements
- Flask framework
- HTTPS environment
- Redis for rate limiting
- Security logging system
