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

pomerium / pomerium / 23258863822
52%

Build:
DEFAULT BRANCH: main
Ran 18 Mar 2026 06:01PM UTC
Jobs 1
Files 688
Run time 2min
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

18 Mar 2026 05:45PM UTC coverage: 45.494% (+0.008%) from 45.486%
23258863822

push

github

web-flow
mcp: unified option constructors for pre-registered and static endpoint OAuth (#6196)

## Summary

Extends `upstream_oauth_setup` so all three upstream OAuth modes
(auto-discovery, pre-registered, static) converge on one code path. Adds
`WithStaticEndpoints`, `WithPreRegisteredCredentials`,
`WithStaticScopes`, and `upstreamOAuthSetupOptsFromConfig` which maps
admin config to an option slice used by all handlers.

Also hardens `buildAuthorizationURL` to return a terminal error on
invalid endpoint URLs (no silent fallback), and prevents `ExtraParams`
from overriding reserved OAuth parameters.

## Related issues

- ENG-3698

## User Explanation

No user-facing behavior changes.

## Checklist

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

91 of 103 new or added lines in 2 files covered. (88.35%)

47 existing lines in 10 files now uncovered.

34902 of 76717 relevant lines covered (45.49%)

114.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
31.89
-0.3% internal/mcp/handler_connect.go
6
91.09
1.77% internal/mcp/upstream_oauth_setup.go

Coverage Regressions

Lines Coverage ∆ File
12
75.73
-3.17% pkg/storage/postgres/backend.go
11
72.3
-7.43% pkg/grpcutil/client_manager.go
9
80.34
0.0% pkg/ssh/manager.go
4
74.26
-1.18% internal/databroker/config_source.go
3
87.75
-1.47% config/config_source.go
2
69.92
-0.3% internal/databroker/server_backend.go
2
48.82
0.18% internal/databroker/server_clustered_follower.go
2
88.08
-0.44% pkg/storage/postgres/postgres.go
1
57.49
-0.25% internal/controlplane/server.go
1
31.89
-0.3% internal/mcp/handler_connect.go
Jobs
ID Job ID Ran Files Coverage
1 23258863822.1 18 Mar 2026 06:01PM UTC 688
45.49
GitHub Action Run
Source Files on build 23258863822
  • Tree
  • List 688
  • Changed 14
  • Source Changed 2
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #23258863822
  • 84652a43 on github
  • Prev Build on main (#23258806489)
  • Next Build on main (#23265643559)
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