Module auth_rate_limit
Expand description
Sliding-window rate limiter for authentication attempts.
Structs§
- Auth
Rate Limiter - Per-IP auth attempt tracker with sliding window and lockout.
- Rate
Limit Error - Error returned when a client exceeds the auth rate limit.
Constants§
- LOCKOUT_
SECS - Lockout duration in seconds after exceeding
MAX_ATTEMPTS. - MAX_
ATTEMPTS - Maximum auth attempts allowed within the sliding window.
- WINDOW_
SECS - Sliding window duration in seconds.