Skip to content
v2.274.0

UserPoolClientIdentityProvider Class ​

Identity providers supported by the UserPoolClient.

Example ​

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

Properties ​

Allow users to sign in using 'Login With Amazon'.

A UserPoolIdentityProviderAmazon must be attached to the user pool.

Allow users to sign in using 'Sign In With Apple'.

A UserPoolIdentityProviderApple must be attached to the user pool.

Allow users to sign in directly as a user of the User Pool.
Allow users to sign in using 'Facebook Login'.

A UserPoolIdentityProviderFacebook must be attached to the user pool.

Allow users to sign in using 'Google Login'.

A UserPoolIdentityProviderGoogle must be attached to the user pool.

namestringnamestrnameStringNamestringName*stringrequired#
The name of the identity provider as recognized by CloudFormation property `SupportedIdentityProviders`.

Methods ​

custom(name: string): UserPoolClientIdentityProvider // chainable@staticmethod def custom(name: str) -> UserPoolClientIdentityProviderpublic static UserPoolClientIdentityProvider custom(String name)public static UserPoolClientIdentityProvider Custom(string name)func Custom(Name *string) UserPoolClientIdentityProviderstatic#
Specify a provider not yet supported by the CDK.
1 parameter

Parameters

  • namenamenamenameName — name of the identity provider as recognized by CloudFormation property SupportedIdentityProviders.