Interface CfnIdentitySource.OpenIdConnectConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnIdentitySource.OpenIdConnectConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnIdentitySource
It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a Configuration structure, which is a parameter to 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.*;
OpenIdConnectConfigurationProperty openIdConnectConfigurationProperty = OpenIdConnectConfigurationProperty.builder()
.issuer("issuer")
.tokenSelection(OpenIdConnectTokenSelectionProperty.builder()
.accessTokenOnly(OpenIdConnectAccessTokenConfigurationProperty.builder()
.audiences(List.of("audiences"))
.principalIdClaim("principalIdClaim")
.build())
.identityTokenOnly(OpenIdConnectIdentityTokenConfigurationProperty.builder()
.clientIds(List.of("clientIds"))
.principalIdClaim("principalIdClaim")
.build())
.build())
// the properties below are optional
.entityIdPrefix("entityIdPrefix")
.groupConfiguration(OpenIdConnectGroupConfigurationProperty.builder()
.groupClaim("groupClaim")
.groupEntityType("groupEntityType")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnIdentitySource.OpenIdConnectConfigurationPropertystatic final classAn implementation forCfnIdentitySource.OpenIdConnectConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringA descriptive string that you want to prefix to user entities from your OIDC identity provider.default ObjectThe claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to.The issuer URL of an OIDC identity provider.The token type that you want to process from your OIDC identity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getIssuer
The issuer URL of an OIDC identity provider.This URL must have an OIDC discovery endpoint at the path
.well-known/openid-configuration.- See Also:
-
getTokenSelection
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.
Returns union: either
IResolvableorCfnIdentitySource.OpenIdConnectTokenSelectionProperty- See Also:
-
getEntityIdPrefix
A descriptive string that you want to prefix to user entities from your OIDC identity provider.For example, if you set an
entityIdPrefixofMyOIDCProvider, you can reference principals in your policies in the formatMyCorp::User::MyOIDCProvider|Carlos.- See Also:
-
getGroupConfiguration
The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to.For example, this object can map the contents of a
groupsclaim toMyCorp::UserGroup.Returns union: either
IResolvableorCfnIdentitySource.OpenIdConnectGroupConfigurationProperty- See Also:
-
builder
-