Skip to content

fix(auth): rate limit GET /oauth2/step_up - #1112

Merged
ericfitz merged 3 commits into
mainfrom
fix/1101-step-up-rate-limit
Oct 18, 2026
Merged

ericfitz merged 3 commits into
mainfrom
fix/1101-step-up-rate-limit

Conversation

@ericfitz

Copy link
Copy Markdown
Owner

Summary

Test plan

  • api/rate_limit_middleware_test.go failed before the fix and passes after it
  • make verify

Fixes #1101

🤖 Generated with Claude Code

https://claude.ai/code/session_015szS68rpMLaq712AFsbMfr

ericfitz and others added 3 commits October 17, 2026 20:24
Add /oauth2/step_up to the centralized isAuthFlowEndpoint set so the
auth-flow limiter (session/IP/login_hint scopes) covers it. The set is
consulted by AuthFlowRateLimitMiddleware and by the per-user
RateLimitMiddleware skip, so there is one list.

The per-user limiter keys on "user_id", which the JWT middleware never
sets on REST routes; that is tracked separately and not changed here.

Fixes #1101

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015szS68rpMLaq712AFsbMfr
Refs #1101

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015szS68rpMLaq712AFsbMfr
@ericfitz
ericfitz merged commit 058384f into main Oct 18, 2026
18 checks passed
@ericfitz
ericfitz deleted the fix/1101-step-up-rate-limit branch October 18, 2026 03:56
ericfitz-version-bump Bot added a commit that referenced this pull request Oct 18, 2026
Folds 1 merged commit(s):
- 058384f fix(auth): rate limit GET /oauth2/step_up (#1112)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(auth): rate limit GET /oauth2/step_up

1 participant