Interface CfnIdentitySource.OpenIdConnectTokenSelectionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIdentitySource.OpenIdConnectTokenSelectionProperty.Jsii$Proxy
- Enclosing class:
CfnIdentitySource
@Stability(Stable)
public static interface CfnIdentitySource.OpenIdConnectTokenSelectionProperty
extends software.amazon.jsii.JsiiSerializable
The token type that you want to process from your OIDC identity provider.
Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This data type is part of a OpenIdConnectConfiguration structure, which is a parameter of CreateIdentitySource .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.verifiedpermissions.*; OpenIdConnectTokenSelectionProperty openIdConnectTokenSelectionProperty = OpenIdConnectTokenSelectionProperty.builder() .accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder() .audiences(List.of("audiences")) .principalIdClaim("principalIdClaim") .build()) .identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder() .clientIds(List.of("clientIds")) .principalIdClaim("principalIdClaim") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnIdentitySource.OpenIdConnectTokenSelectionProperty
static final class
An implementation forCfnIdentitySource.OpenIdConnectTokenSelectionProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessTokenOnly
The OIDC configuration for processing access tokens.Contains allowed audience claims, for example
https://auth.example.com
, and the claim that you want to map to the principal, for examplesub
.- See Also:
-
getIdentityTokenOnly
The OIDC configuration for processing identity (ID) tokens.Contains allowed client ID claims, for example
1example23456789
, and the claim that you want to map to the principal, for examplesub
.- See Also:
-
builder
-