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

stacklok / toolhive / 26305298825
66%

Build:
DEFAULT BRANCH: main
Ran 22 May 2026 06:39PM UTC
Jobs 1
Files 737
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

22 May 2026 06:33PM UTC coverage: 65.817% (-0.04%) from 65.852%
26305298825

push

github

web-flow
Consolidate authserver DCR types onto pkg/oauthproto (#5372)

* Consolidate authserver DCR types onto pkg/oauthproto

Implements changes for issue #5371:
- Add SoftwareID field to oauthproto.DynamicClientRegistrationRequest
- Delete registration.DCRRequest, registration.DCRResponse, FormatScopes
- Change ValidateDCRRequest to take *oauthproto.DynamicClientRegistrationRequest
- Change ValidateScopes to take []string instead of space-delimited string
- Update handler and tests to use oauthproto types
- Add test covering RFC 7591 array-form scope on /oauth/register

* Tighten DCR response shape and ValidateScopes docs

Addresses stacklok/toolhive#5372 review comments:
- MEDIUM pkg/oauthproto/dcr.go:127-130 (3290391806): drop omitempty on
  redirect_uris, token_endpoint_auth_method, grant_types, response_types
  so the response struct enforces RFC 7591 §3.2.1's always-echo
  requirement at the type level.
- LOW pkg/authserver/server/registration/dcr.go (3290391818): rewrite
  ValidateScopes doc comment to decouple the contract from ScopeList and
  enumerate the load-bearing behaviors (default fallback, unknown-scope
  rejection, RFC 6749 §3.3 dedup).

* Tighten DCR handler test coverage

Addresses stacklok/toolhive#5372 review comments:
- MEDIUM pkg/authserver/server/handlers/dcr_test.go (3290391811): pin the
  RFC 7591 §3.2.1 response wire form via assert.Contains on the raw body
  string ("scope":"openid offline_access"), so a regression to JSON-array
  output cannot hide behind ScopeList's dual-format UnmarshalJSON.
- LOW pkg/authserver/server/handlers/dcr_test.go (3290391825): table-drive
  TestRegisterClientHandler_ScopeAsJSONArray with three cases: happy path,
  array-form unsupported scope (expect 400 invalid_client_metadata), and
  empty array (documented behavior change: previously 400, now 201 with
  DefaultScopes).
- INFO pkg/authserver/server/handlers/dcr_test.go (3290391830): replace
  TestRegisterClientHandler_BaselineClientScopes' requestSc... (continued)

12 of 12 new or added lines in 2 files covered. (100.0%)

37 existing lines in 5 files now uncovered.

65163 of 99006 relevant lines covered (65.82%)

62.4 hits per line

Coverage Regressions

Lines Coverage ∆ File
12
76.75
-4.43% pkg/client/config.go
12
67.9
-14.81% pkg/client/discovery.go
8
23.56
-4.6% pkg/client/manager.go
3
78.17
-0.76% pkg/transport/proxy/httpsse/http_proxy.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 26305298825.1 22 May 2026 06:39PM UTC 737
65.82
GitHub Action Run
Source Files on build 26305298825
  • Tree
  • List 737
  • Changed 8
  • Source Changed 3
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26305298825
  • 08baf2da on github
  • Prev Build on main (#26299481722)
  • Next Build on main (#26381184923)
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