Skip to content
v2.278.0

UserPoolAuthenticationProviderProps Struct ​

Props for the User Pool Authentication Provider.

Example ​

ts
declare const identityPool: IdentityPool;
const userPool = new cognito.UserPool(this, 'Pool');
identityPool.addUserPoolAuthentication(new UserPoolAuthenticationProvider({
  userPool,
  disableServerSideTokenCheck: true,
}));
python
# identity_pool: IdentityPool

user_pool = cognito.UserPool(self, "Pool")
identity_pool.add_user_pool_authentication(UserPoolAuthenticationProvider(
    user_pool=user_pool,
    disable_server_side_token_check=True
))
java
IdentityPool identityPool;

UserPool userPool = new UserPool(this, "Pool");
identityPool.addUserPoolAuthentication(UserPoolAuthenticationProvider.Builder.create()
        .userPool(userPool)
        .disableServerSideTokenCheck(true)
        .build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
IdentityPool identityPool;

var userPool = new UserPool(this, "Pool");
identityPool.AddUserPoolAuthentication(new UserPoolAuthenticationProvider(new UserPoolAuthenticationProviderProps {
    UserPool = userPool,
    DisableServerSideTokenCheck = true
}));
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var identityPool IdentityPool

userPool := cognito.NewUserPool(this, jsii.String("Pool"))
identityPool.AddUserPoolAuthentication(awscdk.NewUserPoolAuthenticationProvider(&UserPoolAuthenticationProviderProps{
	UserPool: UserPool,
	DisableServerSideTokenCheck: jsii.Boolean(true),
}))

Properties ​

disableServerSideTokenCheckoptionalbooleandisable_server_side_token_checkoptionalbooldisableServerSideTokenCheckoptionalBooleanDisableServerSideTokenCheckoptionalboolDisableServerSideTokenCheckoptional*bool = false #
Setting this to true turns off identity pool checks for this user pool 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.
userPoolIUserPooluser_poolIUserPooluserPoolIUserPoolUserPoolIUserPoolUserPoolIUserPool required #
The User Pool of the Associated Identity Providers.
userPoolClientoptionalIUserPoolClientRefuser_pool_clientoptionalIUserPoolClientRefuserPoolClientoptionalIUserPoolClientRefUserPoolClientoptionalIUserPoolClientRefUserPoolClientoptionalIUserPoolClientRef #
The User Pool Client for the provided User Pool.

Default: A default user pool client will be added to User Pool