• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pomerium / pomerium / 22776581569 / 1
52%
main: 52%

Build:
DEFAULT BRANCH: main
Ran 06 Mar 2026 06:43PM UTC
Files 687
Run time 18s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Mar 2026 06:28PM UTC coverage: 45.2% (+0.1%) from 45.058%
22776581569.1

push

github

web-flow
mcp: add controlplane wiring and upstream OAuth callback handler (#6172)

## Summary

Wire `UpstreamAuthHandler` into the controlplane and implement the
`ClientOAuthCallback` handler that completes upstream OAuth flows.

When ext_proc intercepts a 401 from an upstream MCP server, it stores
`PendingUpstreamAuth` state and kicks off an OAuth flow.
`ClientOAuthCallback` receives the redirect back from the upstream AS,
exchanges the auth code for tokens, stores the `UpstreamMCPToken`, and
completes the flow via one of two paths depending on how the flow was
initiated:

- **Reactive** (ext_proc 401-intercept) — redirects to the original
upstream URL
- **Proactive** (MCP authorize flow) — issues a Pomerium auth code back
to the
  MCP client via `AuthorizationResponse()`

See `internal/mcp/DESIGN.md` → "Callback Completion Paths" for details.

## Related issues

- ENG-3593
- ENG-3594

## User Explanation

No user-facing changes. This wires up internal infrastructure for MCP
upstream
OAuth flows.

## Checklist

- [x] reference any related issues
- [x] updated unit tests
- [ ] add appropriate label (`enhancement`)
- [ ] ready for review

34338 of 75969 relevant lines covered (45.2%)

116.28 hits per line

Source Files on job 22776581569.1
  • Tree
  • List 687
  • Changed 16
  • Source Changed 3
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 22776581569
  • a452f250 on github
  • Prev Job for on main (#22773785335.1)
  • Next Job for on main (#22778489335.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc