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

stacklok / toolhive / 25700089790

11 May 2026 10:05PM UTC coverage: 64.981% (-0.04%) from 65.018%
25700089790

push

github

web-flow
Move tokenexchange under pkg/oauthproto (#5251)

Relocate pkg/auth/tokenexchange to pkg/oauthproto/tokenexchange so the
RFC 8693 Token Exchange grant sits next to the shared grant-helper
primitives (pkg/oauthproto/grants.go, pkg/oauthproto/oauthtest) and the
upcoming RFC 7523 JWT Bearer grant. With the refactor complete,
pkg/oauthproto is the single home for OAuth 2.0 grant machinery in this
repo; having one grant under pkg/auth and another under pkg/oauthproto
would have been confusing.

Pure rename. All source files move intact; every import path updated
from github.com/stacklok/toolhive/pkg/auth/tokenexchange to
github.com/stacklok/toolhive/pkg/oauthproto/tokenexchange. Also updated
stale doc and agent references to the old path in docs/middleware.md,
docs/operator/crd-api.md, and .claude/agents/oauth-expert.md. Regenerated
docs/server/ swagger so the schema component key reflects the new import
path. The wire format of tokenexchange.Config is unchanged; only the
OpenAPI $ref key (a swaggo artifact derived from the Go import path)
differs.

task test and task lint-fix are clean.

63963 of 98434 relevant lines covered (64.98%)

62.26 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

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