简体   繁体   中英

How to add google as a AWS cognito identity provider in AWS CloudFormation template in JSON

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 ? ie

"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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM