# OpenIdConnectIdentityTokenConfigurationProperty

The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) 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](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_OpenIdConnectTokenSelection.html) structure, which is a parameter of [CreateIdentitySource](https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html) .

- Source: Generated at build time
- Type last changed: v2.148.0 · 5 Jul 2024

## Example

TypeScript:

```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 openIdConnectIdentityTokenConfigurationProperty: verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty = {
  clientIds: ['clientIds'],
  principalIdClaim: 'principalIdClaim',
};
```

Python:

```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_identity_token_configuration_property = verifiedpermissions.CfnIdentitySource.OpenIdConnectIdentityTokenConfigurationProperty(
    client_ids=["clientIds"],
    principal_id_claim="principalIdClaim"
)
```

Java:

```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.*;

OpenIdConnectIdentityTokenConfigurationProperty openIdConnectIdentityTokenConfigurationProperty = OpenIdConnectIdentityTokenConfigurationProperty.builder()
        .clientIds(List.of("clientIds"))
        .principalIdClaim("principalIdClaim")
        .build();
```

C# / .NET:

```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 openIdConnectIdentityTokenConfigurationProperty = new OpenIdConnectIdentityTokenConfigurationProperty {
    ClientIds = new [] { "clientIds" },
    PrincipalIdClaim = "principalIdClaim"
};
```

Golang:

```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"

openIdConnectIdentityTokenConfigurationProperty := &OpenIdConnectIdentityTokenConfigurationProperty{
	ClientIds: []*string{
		jsii.String("clientIds"),
	},
	PrincipalIdClaim: jsii.String("principalIdClaim"),
}
```

## Properties

- `clientIds`: string[] — The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider.

  For example, `1example23456789, 2example10111213` .

- `principalIdClaim`: string = "sub" — The claim that determines the principal in OIDC access tokens.

  For example, `sub` .
