OAuth2AuthorizationServerMetadata

class aws_cdk.aws_bedrock_agentcore_alpha.OAuth2AuthorizationServerMetadata(*, authorization_endpoint, issuer, token_endpoint, response_types=None)

Bases: object

(experimental) Static OAuth2 authorization server metadata for custom credential providers.

Parameters:
  • authorization_endpoint (str) – (experimental) The authorization endpoint URL.

  • issuer (str) – (experimental) The issuer URL for the OAuth2 authorization server.

  • token_endpoint (str) – (experimental) The token endpoint URL.

  • response_types (Optional[Sequence[str]]) – (experimental) The supported response types. Default: - not specified

See:

https://www.rfc-editor.org/rfc/rfc8414

Stability:

experimental

ExampleMetadata:

fixture=default infused

Example:

agentcore.OAuth2CredentialProvider.using_custom(self, "CustomOAuthMeta",
    client_id="your-client-id",
    client_secret=cdk.SecretValue.unsafe_plain_text("your-client-secret"),
    authorization_server_metadata=agentcore.OAuth2AuthorizationServerMetadata(
        issuer="https://idp.example.com",
        authorization_endpoint="https://idp.example.com/oauth2/authorize",
        token_endpoint="https://idp.example.com/oauth2/token"
    )
)

Attributes

authorization_endpoint

(experimental) The authorization endpoint URL.

Stability:

experimental

issuer

(experimental) The issuer URL for the OAuth2 authorization server.

Stability:

experimental

response_types

(experimental) The supported response types.

Default:
  • not specified

Stability:

experimental

token_endpoint

(experimental) The token endpoint URL.

Stability:

experimental