# UserPoolClientIdentityProvider

Identity providers supported by the UserPoolClient.

- Source: [`aws-cognito/lib/user-pool-client.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool-client.ts#L194)

## Example

```ts
const pool = new cognito.UserPool(this, 'Pool');
pool.addClient('app-client', {
  // ...
  supportedIdentityProviders: [
    cognito.UserPoolClientIdentityProvider.AMAZON,
    cognito.UserPoolClientIdentityProvider.COGNITO,
  ],
});
```

## Properties

- `AMAZON`: [UserPoolClientIdentityProvider](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Login With Amazon'.

  A `UserPoolIdentityProviderAmazon` must be attached to the user pool.

- `APPLE`: [UserPoolClientIdentityProvider](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Sign In With Apple'.

  A `UserPoolIdentityProviderApple` must be attached to the user pool.

- `COGNITO`: [UserPoolClientIdentityProvider](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in directly as a user of the User Pool.

- `FACEBOOK`: [UserPoolClientIdentityProvider](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Facebook Login'.

  A `UserPoolIdentityProviderFacebook` must be attached to the user pool.

- `GOOGLE`: [UserPoolClientIdentityProvider](/cdk/api/v2/docs/aws-cdk-lib.aws_cognito.UserPoolClientIdentityProvider.html) (static) — Allow users to sign in using 'Google Login'.

  A `UserPoolIdentityProviderGoogle` must be attached to the user pool.

- `name`: string — The name of the identity provider as recognized by CloudFormation property `SupportedIdentityProviders`.

## Methods

- `custom(name: string): UserPoolClientIdentityProvider // chainable` (static) — Specify a provider not yet supported by the CDK.

  **Parameters**

  - `name` — name of the identity provider as recognized by CloudFormation property `SupportedIdentityProviders`.
