CognitoIdentityProviderProperty Struct
CognitoIdentityProvider is a property of the AWS::Cognito::IdentityPool resource that represents an Amazon Cognito user pool and its client ID.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cognitoIdentityProviderProperty: cognito.CfnIdentityPool.CognitoIdentityProviderProperty = {
clientId: 'clientId',
providerName: 'providerName',
// the properties below are optional
serverSideTokenCheck: false,
};
Properties
The client ID for the Amazon Cognito user pool.
The provider name for an Amazon Cognito user pool.
For example: cognito-idp.us-east-2.amazonaws.com/us-east-2_123456789 .
serverSideTokenCheckoptionalboolean | IResolvableserver_side_token_checkoptionaltyping.Union[bool, IResolvable]serverSideTokenCheckoptionalBooleanServerSideTokenCheckoptionalboolServerSideTokenCheckoptionalinterface{}#TRUE if server-side token validation is enabled for the identity provider’s token.
notes
After you set the ServerSideTokenCheck to TRUE for an identity pool, that identity pool checks with the integrated user pools to make sure the user has not been globally signed out or deleted before the identity pool provides an OIDC token or AWS credentials for the user.
If the user is signed out or deleted, the identity pool returns a 400 Not Authorized error.