4

I'm using amazon web services. In the AWS CloudFormation I'm creating a template in JSON where I have to add Identity Pool as a resource where I have to use Google as Cognito Identity Provider. If we use Google as in CognitoIdentityProvider then what should be the value in the object ? i.e

"CognitoIdentityProvider":[
{
  "ClientId": String,
  "ProviderName": String,
  "ServerSideTokenCheck": Boolean
}
]

Can anyone help me with the values of this object properties if we use Google as an CognitoIdentityProvider ? Please help.

Rajesh
  • 7,766
  • 5
  • 22
  • 35
RITAM DAS
  • 43
  • 5
  • Hope this links helps : https://aws.amazon.com/blogs/mobile/simplify-web-identity-federation-setup-with-aws-cloudformation/ – Rajesh Sep 28 '18 at 09:52
  • Does this answer your question? [Can I setup AWS Cognito User Pool Identity Providers with Cloudformation?](https://stackoverflow.com/questions/49395669/can-i-setup-aws-cognito-user-pool-identity-providers-with-cloudformation) – wprl Nov 27 '19 at 15:53

1 Answers1

3

Bit related to Can I setup AWS Cognito User Pool Identity Providers with Cloudformation?

As I said there, what worked for me is something like:

CognitoUserPoolIdentityProvider:
  Type: AWS::Cognito::UserPoolIdentityProvider
  Properties: 
    ProviderName: Google
    AttributeMapping:
      email: emailAddress
    ProviderDetails:
      client_id: <yourclientid>.apps.googleusercontent.com
      client_secret: <yourclientsecret>
      authorize_scopes: email openid
    ProviderType: Google
    UserPoolId: 
      Ref: CognitoUserPool
vgaltes
  • 1,150
  • 11
  • 18