Skip to content
v2.278.0

OpenIdConnectAccessTokenConfigurationProperty Struct ​

The configuration of an OpenID Connect (OIDC) identity source for handling access token claims.

Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.

This data type is part of a OpenIdConnectTokenSelection 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 openIdConnectAccessTokenConfigurationProperty: verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty = {
  audiences: ['audiences'],
  principalIdClaim: 'principalIdClaim',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_verifiedpermissions as verifiedpermissions

open_id_connect_access_token_configuration_property = verifiedpermissions.CfnIdentitySource.OpenIdConnectAccessTokenConfigurationProperty(
    audiences=["audiences"],
    principal_id_claim="principalIdClaim"
)
java
// 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.*;

OpenIdConnectAccessTokenConfigurationProperty openIdConnectAccessTokenConfigurationProperty = OpenIdConnectAccessTokenConfigurationProperty.builder()
        .audiences(List.of("audiences"))
        .principalIdClaim("principalIdClaim")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VerifiedPermissions;

var openIdConnectAccessTokenConfigurationProperty = new OpenIdConnectAccessTokenConfigurationProperty {
    Audiences = new [] { "audiences" },
    PrincipalIdClaim = "principalIdClaim"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

openIdConnectAccessTokenConfigurationProperty := &OpenIdConnectAccessTokenConfigurationProperty{
	Audiences: []*string{
		jsii.String("audiences"),
	},
	PrincipalIdClaim: jsii.String("principalIdClaim"),
}

Properties ​

audiencesoptionalstring[]audiencesoptionaltyping.List[str]audiencesoptionalList<String>Audiencesoptionalstring[]Audiencesoptional*[]*string #
The access token `aud` claim values that you want to accept in your policy store.

For example, https://myapp.example.com, https://myapp2.example.com .

principalIdClaimoptionalstringprincipal_id_claimoptionalstrprincipalIdClaimoptionalStringPrincipalIdClaimoptionalstringPrincipalIdClaimoptional*string = "sub" #
The claim that determines the principal in OIDC access tokens.

For example, sub .