UserPoolIdentityProviderGoogleProps Struct
Properties to initialize UserPoolGoogleIdentityProvider.
Example
ts
const userpool = new cognito.UserPool(this, 'Pool');
const secret = secretsmanager.Secret.fromSecretAttributes(this, "CognitoClientSecret", {
secretCompleteArn: "arn:aws:secretsmanager:xxx:xxx:secret:xxx-xxx"
}).secretValue
const provider = new cognito.UserPoolIdentityProviderGoogle(this, 'Google', {
clientId: 'amzn-client-id',
clientSecretValue: secret,
userPool: userpool,
});
Properties
attributeMappingAttributeMappingattribute_mappingAttributeMappingattributeMappingAttributeMappingAttributeMappingAttributeMappingAttributeMappingAttributeMapping= no attribute mapping#Mapping attributes from the identity provider to standard and custom attributes of the user pool.
The client id recognized by Google APIs.
clientSecretstringclient_secretstrclientSecretStringClientSecretstringClientSecret*string= nonedeprecated#use clientSecretValue instead
clientSecretValueSecretValueclient_secret_valueSecretValueclientSecretValueSecretValueClientSecretValueSecretValueClientSecretValueSecretValue= none#The client secret to be accompanied with clientId for Google APIs to authenticate the client as SecretValue.
The list of Google permissions to obtain for getting access to the Google profile.