You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Register as a public client when the authorization server only supports none #163
register_client (registry/oauth/flow.rs) always registers with token_endpoint_auth_method: "client_secret_post", and AuthorizationServerMetadata does not read token_endpoint_auth_methods_supported. Authorization servers that only accept public clients reject that registration with 400 invalid_client_metadata (OnArrival: "Only public clients (token_endpoint_auth_method "none") are supported."), so no tinymcp host can sign in to them.
Goal
Read token_endpoint_auth_methods_supported; register with client_secret_post when it is listed or the list is absent (today's behaviour), else none when listed, else fail with a clear error. A public client stores no secret; token exchange and refresh send no secret for it.
Acceptance
["none"] → registers none, no secret stored, token and refresh send none.
["client_secret_post","none"] and absent → unchanged.
OAuth dynamic client registration always requests client_secret_post and ignores token_endpoint_auth_methods_supported, so registration against public-client-only authorization servers fails with 400 invalid_client_metadata and no host can sign in. Fix should negotiate the auth method (none for public clients, storing no secret, omitted from token/refresh) and add wiremock coverage.
Triage for team#45: still real on main e098e53 (registration is always client_secret_post). On our CI box, main's registration line gets exactly this 400 from a public-only stand-in.
The fix is #164. With it, all 8 public_client tests pass, including ["none"] with no secret on exchange or refresh. One small README wording nit is left there, then it can merge and close this.
Activity
tinysweeper commentedon Nov 4, 2026
OAuth dynamic client registration always requests client_secret_post and ignores token_endpoint_auth_methods_supported, so registration against public-client-only authorization servers fails with 400 invalid_client_metadata and no host can sign in. Fix should negotiate the auth method (none for public clients, storing no secret, omitted from token/refresh) and add wiremock coverage.
Labelled
priority: p1.M3gA-Mind commentedon Nov 11, 2026
Triage for team#45: still real on main e098e53 (registration is always
client_secret_post). On our CI box, main's registration line gets exactly this 400 from a public-only stand-in.The fix is #164. With it, all 8
public_clienttests pass, including["none"]with no secret on exchange or refresh. One small README wording nit is left there, then it can merge and close this.Merge pull request #164 from oxoxDev/fix/163-public-client