Function: buildAuthorizationServerMetadata()
buildAuthorizationServerMetadata(
args):Rfc8414Metadata
Defined in: oauth.ts:145
Builds an RFC 8414 Authorization Server Metadata object.
Advertises only the code response type, authorization_code grant,
S256 PKCE, and the none token endpoint auth method — matching the
MCP auth spec requirements.
Parameters
| Parameter | Type | Description |
|---|---|---|
args | { authorizationEndpoint: string; issuer: string; registrationEndpoint?: string; tokenEndpoint: string; } | - |
args.authorizationEndpoint | string | URL of the authorization endpoint. |
args.issuer | string | The authorization server's issuer identifier URI. |
args.registrationEndpoint? | string | URL of the dynamic client registration endpoint (optional). |
args.tokenEndpoint | string | URL of the token endpoint. |