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

pomerium / pomerium / 24740199847 / 1
46%
main: 46%

Build:
DEFAULT BRANCH: main
Ran 21 Apr 2026 07:01PM UTC
Files 696
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

21 Apr 2026 06:44PM UTC coverage: 45.684% (+0.07%) from 45.619%
24740199847.1

push

github

web-flow
mcp: refresh expired upstream token before forcing reauth (#6282)

## Summary

`/.pomerium/mcp/authorize` and `/.pomerium/mcp/connect` forced a full
interactive OAuth flow whenever the cached `UpstreamMCPToken` was past
its expiry, even when a valid `refresh_token` was on hand. Now attempt a
silent refresh first; on permanent failure drop the stale token and fall
through as before.

## Related issues


[ENG-3927](https://linear.app/pomerium/issue/ENG-3927/mcp-authorize-handler-doesnt-refresh-expired-upstreammcptoken-triggers)

## User Explanation

MCP clients no longer get bounced through a full upstream OAuth consent
page once a day when their cached access token expires; a fresh token is
fetched silently from the upstream's `token_endpoint`.

## Checklist

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

35553 of 77823 relevant lines covered (45.68%)

114.87 hits per line

Source Files on job 24740199847.1
  • Tree
  • List 696
  • Changed 13
  • Source Changed 4
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24740199847
  • 599b7d13 on github
  • Prev Job for on main (#24736983345.1)
  • Next Job for on main (#24800708842.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