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

pomerium / pomerium / 21890627876
44%

Build:
DEFAULT BRANCH: main
Ran 11 Feb 2026 02:50AM UTC
Jobs 1
Files 667
Run time 1min
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

11 Feb 2026 02:38AM UTC coverage: 44.052% (+0.09%) from 43.966%
21890627876

push

github

web-flow
mcp: add upstream OAuth discovery core functions (RFC 9728/8414) (#6099)

## Summary

Add core upstream discovery functions for MCP proxy OAuth flow,
implementing RFC 9728 (Protected Resource Metadata) and RFC 8414
(Authorization Server Metadata):

- `ParseWWWAuthenticate` — parse Bearer WWW-Authenticate headers using
go-sfv (round-trip compatible with existing `SetWWWAuthenticateHeader`)
- `FetchProtectedResourceMetadata` / `FetchAuthorizationServerMetadata`
— fetch and validate metadata from well-known endpoints
- `BuildProtectedResourceMetadataURLs` /
`BuildAuthorizationServerMetadataURLs` — construct well-known URLs with
MCP-specified priority order for path-based issuers
- `ValidateProtectedResourceMetadata` /
`ValidateAuthorizationServerMetadata` — validate required fields and MCP
constraints (PKCE S256, authorization_code grant)

These are stateless core functions that will be consumed by ext_proc for
401/403 response handling. Response body capped at 1MB via
`io.LimitReader`.

## Related issues

- ENG-3555

## User Explanation

No user-facing changes. Internal implementation for upcoming upstream
MCP server authorization discovery.

## Checklist

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

126 of 131 new or added lines in 2 files covered. (96.18%)

7 existing lines in 3 files now uncovered.

31974 of 72583 relevant lines covered (44.05%)

118.33 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
95.28
internal/mcp/upstream_discovery.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
48.64
-0.36% internal/databroker/server_clustered_follower.go
2
95.83
-2.08% pkg/identity/manager/schedulers.go
3
87.75
-1.47% config/config_source.go
Jobs
ID Job ID Ran Files Coverage
1 21890627876.1 11 Feb 2026 02:50AM UTC 667
44.05
GitHub Action Run
Source Files on build 21890627876
  • Tree
  • List 667
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21890627876
  • 8dc80787 on github
  • Prev Build on main (#21890602901)
  • Next Build on main (#21919446546)
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