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

stacklok / toolhive / 29750232147

20 Jul 2026 02:20PM UTC coverage: 68.707% (-0.03%) from 68.733%
29750232147

push

github

web-flow
Wire token exchange handler into fosite (#5881)

Switch createProvider() from compose.Compose to NewAuthorizationServer
with factory adapters so the custom RFC 8693 token exchange handler can
be registered alongside the standard OAuth grant types.

- Add wrapComposeFactory adapter to bridge compose.Factory -> server.Factory
- Register tokenexchange.Factory in the extra-factories list
- Add DelegationTokenLifespan to Config (default 15m, max 24h) and
  RunConfig, parsed in runner/embeddedauthserver.go
- Add integration and config-validation test coverage

Token exchange is intentionally not advertised in discovery metadata
yet: it requires a confidential client, and no confidential-client
registration path exists on this branch, so advertising it would
describe a grant no issuable client can use.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

72 of 88 new or added lines in 3 files covered. (81.82%)

72 existing lines in 5 files now uncovered.

75323 of 109630 relevant lines covered (68.71%)

72.78 hits per line

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

85.29
/pkg/authserver/server_impl.go


Build SHA Not Found

The commit SHA "c1c9c451ae962e5f2128e369251cbfaccb709a7c" was not found in your repository, so the file cannot be loaded. This may be because you posted from a local development environment, or your CI created an ephemeral commit.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc