Skip to content

OAuthResourceMetadataResponse

Defined in: src/client/oauth.ts:5

RFC 9728 OAuth Protected Resource Metadata (client-side response).

authorizationServers: string[];

Defined in: src/client/oauth.ts:9

Authorization-server issuer URLs; the first is used for OIDC discovery (authorization_servers).


optional bearerMethodsSupported?: string[];

Defined in: src/client/oauth.ts:13

Advertised bearer methods, e.g. ["header"] (bearer_methods_supported).


optional clientId?: string;

Defined in: src/client/oauth.ts:25

OAuth client_id advertised by the server.


optional clientSecret?: string;

Defined in: src/client/oauth.ts:27

OAuth client_secret advertised by the server.


optional deviceCodeClientId?: string;

Defined in: src/client/oauth.ts:31

OAuth client_id for device code flow.


optional deviceCodeClientSecret?: string;

Defined in: src/client/oauth.ts:33

OAuth client_secret for device code flow.


resource: string;

Defined in: src/client/oauth.ts:7

The protected resource’s canonical URL (resource).


optional resourceDocumentation?: string;

Defined in: src/client/oauth.ts:19

Documentation URL for the resource (resource_documentation).


optional resourceName?: string;

Defined in: src/client/oauth.ts:17

Human-readable resource name (resource_name).


optional resourcePolicyUri?: string;

Defined in: src/client/oauth.ts:21

Policy URL for the resource (resource_policy_uri).


optional resourceSigningAlgValuesSupported?: string[];

Defined in: src/client/oauth.ts:15

JWS algorithms the resource accepts (resource_signing_alg_values_supported).


optional resourceTosUri?: string;

Defined in: src/client/oauth.ts:23

Terms-of-service URL for the resource (resource_tos_uri).


optional scopesSupported?: string[];

Defined in: src/client/oauth.ts:11

Scopes the resource advertises (scopes_supported).


optional useIdTokenAsBearer?: boolean;

Defined in: src/client/oauth.ts:29

When true, use the OIDC id_token as the Bearer token instead of access_token.