Skip to content
v2.275.0

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 .

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 ​

accessTokenOnlyoptionalIResolvable | CfnIdentitySource.OpenIdConnectAccessTokenConfigurationPropertyaccess_token_onlyoptionaltyping.Union[IResolvable, OpenIdConnectAccessTokenConfigurationProperty]accessTokenOnlyoptionalIResolvableAccessTokenOnlyoptionalIResolvableAccessTokenOnlyoptionalinterface{}#
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 .

identityTokenOnlyoptionalIResolvable | CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationPropertyidentity_token_onlyoptionaltyping.Union[IResolvable, OpenIdConnectIdentityTokenConfigurationProperty]identityTokenOnlyoptionalIResolvableIdentityTokenOnlyoptionalIResolvableIdentityTokenOnlyoptionalinterface{}#
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 .