Skip to content

OIDC: Allow for determining JWKs from well known endpoint #199

Closed

Description

@JAORMX

We could allow for folks to only provide a subset of information by leveraging the issuer's well known endpoint. This would make OIDC a little easier to configure.

Activity

  1. added
    enhancement
    good-first-issue
    p2
    on Apr 16, 2025
  2. added a commit that references this issue on May 30, 2025
    7342971
  3. ariel-miculas commented on Sep 18, 2025

    @ariel-miculas

    @JAORMX, It seems that this feature doesn't work with the atlassian remote mcp server due to issuer mismatch:

    thv run atlassian-remote
    

    Logs:

    2:55PM  INFO    Loaded configuration from state for atlassian-remote
    2:55PM  INFO    Starting tooling server atlassian-remote...
    2:55PM  INFO    OIDC validation disabled, using local user authentication
    2:55PM  INFO    Using local user authentication for user: amiculas
    2:55PM  INFO    Setting up sse transport...
    2:55PM  INFO    Detected authentication requirement from server - type: OAuth, realm: OAuth, resource_metadata:
    2:55PM  INFO    Starting OAuth authentication flow with issuer: https://mcp.atlassian.com
    2:55PM  INFO    Starting OAuth authentication flow for issuer: https://mcp.atlassian.com
    Error: failed to restart workload atlassian-remote: failed to authenticate to remote server: remote authentication failed: failed to discover registration endpoint: unable to discover OIDC endpoints at "https://mcp.atlassian.com/.well-known/openid-configuration" or "https://mcp.atlassian.com/.well-known/oauth-authorization-server": OIDC error: https://mcp.atlassian.com/.well-known/openid-configuration: HTTP 404, OAuth error: https://mcp.atlassian.com/.well-known/oauth-authorization-server: invalid metadata: issuer mismatch: expected https://mcp.atlassian.com, got https://atlassian-remote-mcp-production.atlassian-remote-mcp-server-production.workers.dev
    
    $ curl https://mcp.atlassian.com/.well-known/oauth-authorization-server | jq
    {
      "issuer": "https://atlassian-remote-mcp-production.atlassian-remote-mcp-server-production.workers.dev",
      "authorization_endpoint": "https://mcp.atlassian.com/v1/authorize",
      "token_endpoint": "https://atlassian-remote-mcp-production.atlassian-remote-mcp-server-production.workers.dev/v1/token",
      "registration_endpoint": "https://atlassian-remote-mcp-production.atlassian-remote-mcp-server-production.workers.dev/v1/register",
      "response_types_supported": [
        "code"
      ],
      "response_modes_supported": [
        "query"
      ],
      "grant_types_supported": [
        "authorization_code",
        "refresh_token"
      ],
      "token_endpoint_auth_methods_supported": [
        "client_secret_basic",
        "client_secret_post",
        "none"
      ],
      "revocation_endpoint": "https://atlassian-remote-mcp-production.atlassian-remote-mcp-server-production.workers.dev/v1/token",
      "code_challenge_methods_supported": [
        "plain",
        "S256"
      ]
    }
    
  4. JAORMX commented on Sep 18, 2025

    @JAORMX
    CollaboratorAuthor

    @ariel-miculas thanks for the heads up! I'll open a bug and fix this.

  5. JAORMX commented on Sep 18, 2025

    @JAORMX
    CollaboratorAuthor

    @ariel-miculas I've opened #1957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood-first-issuep2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions