interface OAuth2AuthorizationServerMetadata
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.OAuth2AuthorizationServerMetadata |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#OAuth2AuthorizationServerMetadata |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.OAuth2AuthorizationServerMetadata |
Python | aws_cdk.aws_bedrock_agentcore_alpha.OAuth2AuthorizationServerMetadata |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป OAuth2AuthorizationServerMetadata |
Static OAuth2 authorization server metadata for custom credential providers.
See also: https://www.rfc-editor.org/rfc/rfc8414
Example
agentcore.OAuth2CredentialProvider.usingCustom(this, "CustomOAuthMeta", {
clientId: "your-client-id",
clientSecret: cdk.SecretValue.unsafePlainText("your-client-secret"),
authorizationServerMetadata: {
issuer: "https://idp.example.com",
authorizationEndpoint: "https://idp.example.com/oauth2/authorize",
tokenEndpoint: "https://idp.example.com/oauth2/token",
},
});
Properties
| Name | Type | Description |
|---|---|---|
| authorization | string | The authorization endpoint URL. |
| issuer | string | The issuer URL for the OAuth2 authorization server. |
| token | string | The token endpoint URL. |
| response | string[] | The supported response types. |
authorizationEndpoint
Type:
string
The authorization endpoint URL.
issuer
Type:
string
The issuer URL for the OAuth2 authorization server.
tokenEndpoint
Type:
string
The token endpoint URL.
responseTypes?
Type:
string[]
(optional, default: not specified)
The supported response types.

.NET
Go
Java
Python
TypeScript (