Uploaded image for project: 'OpenId Connect'
  1. OpenId Connect
  2. OIDC-303

Also expose OAuth AS metadata at .well-known/oauth-authorization-server

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.25.0
    • None
    • None
    • None
    • Unknown

    Description

      Github Issue Link: Also expose OAuth AS metadata at .well-known/oauth-authorization-server by Splashing23 - Pull Request #138 - xwiki-contrib/oidc

      Summary

      • Register the existing OIDC discovery handler for .well-known/oauth-authorization-server in addition to .well-known/openid-configuration.
      • Lets MCP/OAuth clients that follow RFC 8414 discover XWiki's authorization/token/registration endpoints instead of falling back to guessing /authorize on the host root.

      Context

      XWiki already returns correct OpenID Connect Discovery JSON at /oidc/.well-known/openid-configuration. MCP clients (and similar OAuth resource clients) often request /oidc/.well-known/oauth-authorization-server first per RFC 8414. That path currently 404s, which breaks discovery even when Protected Resource Metadata correctly points at the /oidc issuer.

      Test plan

      •  GET /oidc/.well-known/oauth-authorization-server returns 200 with the same metadata JSON as openid-configuration
      •  GET /oidc/.well-known/openid-configuration still returns 200 unchanged
      •  Confirm authorization_endpointtoken_endpointissuer, and registration_endpoint are present

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            splash23 Dev Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: