Files
netris-nestri/apps
Wanjohi 45c82ec369 feat(auth): limit how often one address may ask for a device code
Starting a device grant takes no secret and costs the caller nothing,
so one address could create grants as fast as it liked: rows nobody
will ever answer, and a wider target for anyone guessing user codes.
Guesses were already limited per address; asking was not.

POST /device/authorize now allows 10 requests per address per 10
minutes by default (`deviceVerification.requestLimit` and
`requestWindow`), counted the same way as wrong user codes. Past that
it answers 429 with `Retry-After` and an OAuth error body using
`slow_down`, the code a device client already treats as "wait".
2026-10-16 00:53:54 +03:00
..
2026-10-12 13:49:50 +03:00