Skip to content

Register as a public client when the authorization server only supports none #163

Closed

Description

@oxoxDev

Problem

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.
  • Wiremock tests for each.

Activity

  1. self-assigned this
    on Nov 4, 2026
  2. tinysweeper commented on Nov 4, 2026

    @tinysweeper

    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.

  3. added theissue type on Nov 4, 2026
  4. M3gA-Mind commented on Nov 11, 2026

    @M3gA-Mind
    Contributor

    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.

  5. added a commit that references this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions