board logo
Posted by: WUICTeam - Friday, November 27, 2026 9:01:24 AM
[b]Question[/b] Our login endpoint suddenly answers 429 [c]errors.auth.login_rate_limited[/c]. Sometimes it is a single user who mistyped a password, sometimes a whole office or a load-test machine. Which limit am I hitting and what can I change? [b]Answer[/b] There are two independent limits, and only one of them is configurable. The response does not tell you which one fired (on purpose, so an attacker cannot tell whether a username exists): you work it out from the pattern. [list] [*][b]Per user, always on.[/b] 5 wrong passwords for the same username within 5 minutes lock that username for 60 seconds. The username is compared trimmed and case-insensitive, and a successful login clears its counter. It cannot be disabled. [*][b]Per IP, off by default.[/b] It is controlled by [c]loginRateLimitPerIpPerMinute[/c]. With the default [c]0[/c] nothing is counted. With a value above 0, every login attempt from that IP (failed [i]and[/i] successful) is counted in a one-minute window, and when the limit is crossed the IP is locked for 60 seconds. [/list] So a 429 for a single account that keeps failing is the per-user limit: wait for [c]retryAfterSeconds[/c] (it is in the error arguments) and enter the right password. A 429 for many different users coming from the same address means someone set the per-IP value, typically to [c]30[/c], and a shared NAT, a stress test or a CI runner is exceeding it. Both keys live in [c]AppSettings[/c] and are read on every call, so no restart is needed: [code] "AppSettings": { "loginRateLimitPerIpPerMinute": "120", "loginRateLimitExemptIps": "10.0.2.2, 192.168.1.50" } [/code] [c]loginRateLimitExemptIps[/c] is a comma-separated list of addresses that are never limited and never counted. Loopback is always exempt. Do not exempt a public-facing address just to silence a test: on an exposed installation the per-IP limit is your protection against credential stuffing across many usernames, so raise it or exempt only known internal sources. [url=https://wuic-framework.com/docs/troubleshooting]Documentation: Troubleshooting & Best Practices[/url]