The orchestrator's OAuth client, as an authorization server fetches it
The Client ID Metadata Document of this orchestrator (ADR 0046, slice 4c; draft-ietf-oauth-client-id-metadata-document): the client_id the broker sends to an authorization server that says it supports such documents is the URL of this document, so the server fetches it instead of registering a client. The path is the one of userToolServers.oauth.clientMetadataUrl, an https URL with a path on the origin of the OAuth callback; /oauth/client-metadata.json is the path this contract uses as its example. It is served only while that key is set and credentials are kept, and is a 401 (the identity layer's, as for any path nothing serves) otherwise. The edge must route this path to the orchestrator and let a GET through with no sign-in: the fetcher is an authorization server.
The document says: client_id (the URL, byte for byte as the broker sends it), client_name (userToolServers.oauth.clientName), redirect_uris (the callback and nothing else: the browser always comes back to the orchestrator), grant_types (authorization_code, refresh_token), response_types (code) and token_endpoint_auth_method: none (a public client with PKCE). It holds nothing secret and is made once at startup. Outside the identity layer; rate limited with the other public routes, under a key of its own (not the callback's); cacheable for five minutes.
Responses
The document