OpenIdConnectTokenSelectionProperty Struct
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 .
- Source
- Generated code
- Type last changed
- v2.148.0 · 5 Jul 2024
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_verifiedpermissions as verifiedpermissions } from 'aws-cdk-lib';
const openIdConnectTokenSelectionProperty: verifiedpermissions.CfnIdentitySource.OpenIdConnectTokenSelectionProperty = {
accessTokenOnly: {
audiences: ['audiences'],
principalIdClaim: 'principalIdClaim',
},
identityTokenOnly: {
clientIds: ['clientIds'],
principalIdClaim: 'principalIdClaim',
},
};
Properties
accessTokenOnly?optionalIResolvable | CfnIdentitySource.OpenIdConnectAccessTokenConfigurationPropertyaccess_token_only?optionaltyping.Union[IResolvable, OpenIdConnectAccessTokenConfigurationProperty]accessTokenOnly?optionalIResolvableAccessTokenOnly?optionalIResolvableAccessTokenOnly?optionalinterface{}#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 example sub .
identityTokenOnly?optionalIResolvable | CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationPropertyidentity_token_only?optionaltyping.Union[IResolvable, OpenIdConnectIdentityTokenConfigurationProperty]identityTokenOnly?optionalIResolvableIdentityTokenOnly?optionalIResolvableIdentityTokenOnly?optionalinterface{}#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 example sub .