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

stacklok / toolhive / 21760661463
61%

Build:
DEFAULT BRANCH: main
Ran 06 Feb 2026 06:09PM UTC
Jobs 1
Files 507
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

06 Feb 2026 06:01PM UTC coverage: 61.069% (+0.007%) from 61.062%
21760661463

push

github

web-flow
Simplify authserver's upstream provider interface (#3638)

Follow-up to an earlier discussion in a previous PR:
https://github.com/stacklok/toolhive/pull/3580#discussion_r2762417865

Combine ExchangeCode and ResolveIdentity into atomic ExchangeCodeForIdentity

Merge the two-step exchange+identity flow into a single interface method
to prevent OIDC nonce validation from being accidentally skipped. This
ensures replay protection is always enforced when exchanging authorization
codes with OIDC providers.

The OAuth2Provider interface shrinks from 6 to 4 methods by removing
ExchangeCode, ResolveIdentity, and FetchUserInfo (now package-private).
The UserInfo struct is also made private and moved to oauth2.go.

38 of 47 new or added lines in 4 files covered. (80.85%)

6 existing lines in 3 files now uncovered.

41589 of 68102 relevant lines covered (61.07%)

77.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
91.95
0.1% pkg/authserver/upstream/oauth2.go
2
87.27
0.08% pkg/authserver/upstream/oidc.go
5
9.09
2.6% pkg/authserver/upstream/mocks/mock_provider.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.58
-0.53% pkg/transport/proxy/httpsse/http_proxy.go
2
57.89
-3.51% pkg/transport/session/sse_session.go
2
82.83
-0.26% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 21760661463.1 06 Feb 2026 06:09PM UTC 507
61.07
GitHub Action Run
Source Files on build 21760661463
  • Tree
  • List 507
  • Changed 7
  • Source Changed 4
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21760661463
  • 3f8bbc24 on github
  • Prev Build on main (#21759718482)
  • Next Build on main (#21761131731)
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