# UserPoolAuthenticationProviderProps

Props for the User Pool Authentication Provider.

Used as props by: [UserPoolAuthenticationProvider](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito_identitypool.UserPoolAuthenticationProvider.html)

- Source: [`aws-cognito-identitypool/lib/identitypool-user-pool-authentication-provider.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cognito-identitypool/lib/identitypool-user-pool-authentication-provider.ts#L27)
- Type last changed: v2.235.0 · 15 Jan 2026

## Example

TypeScript:

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

Python:

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

```java
IdentityPool identityPool;

UserPool userPool = new UserPool(this, "Pool");
identityPool.addUserPoolAuthentication(UserPoolAuthenticationProvider.Builder.create()
        .userPool(userPool)
        .disableServerSideTokenCheck(true)
        .build());
```

C# / .NET:

```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
}));
```

Golang:

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

- `disableServerSideTokenCheck`: boolean = 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.

- `userPool`: [IUserPool](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.IUserPool.html) (required) — The User Pool of the Associated Identity Providers.

- `userPoolClient`: [IUserPoolClientRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cognito.IUserPoolClientRef.html) — The User Pool Client for the provided User Pool.

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