Skip to content

fix(middleware): Skip OAuth endpoints in AI agent middleware#106711

Merged
dcramer merged 1 commit intomasterfrom
fix/ai-agent-middleware-skip-oauth
Jan 21, 2026
Merged

fix(middleware): Skip OAuth endpoints in AI agent middleware#106711
dcramer merged 1 commit intomasterfrom
fix/ai-agent-middleware-skip-oauth

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Jan 21, 2026

Summary

  • Exclude /oauth/ paths from the AI agent markdown response middleware
  • These are legitimate machine-to-machine endpoints (device authorization, token exchange) that should work normally

Test plan

  • Added test case test_oauth_path_passes_through to verify OAuth paths are not intercepted
  • All existing tests pass

Addresses feedback from #106485 (comment)

Exclude /oauth/ paths from the AI agent markdown response middleware
since these are legitimate machine-to-machine endpoints that should
work normally (device authorization, token exchange, etc.).

Fixes feedback from #106485
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jan 21, 2026
@dcramer dcramer enabled auto-merge (squash) January 21, 2026 21:26
@dcramer dcramer merged commit f031209 into master Jan 21, 2026
67 checks passed
@dcramer dcramer deleted the fix/ai-agent-middleware-skip-oauth branch January 21, 2026 21:45
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants