【问题标题】:How to add google as a AWS cognito identity provider in AWS CloudFormation template in JSON如何在 JSON 中的 AWS CloudFormation 模板中将 google 添加为 AWS cognito 身份提供商
【发布时间】:2019-03-04 01:29:32
【问题描述】:

我正在使用亚马逊网络服务。在 AWS CloudFormation 中,我在 JSON 中创建了一个模板,我必须在其中添加身份池作为资源,我必须使用 Google 作为 Cognito 身份提供者。 如果我们在 CognitoIdentityProvider 中使用 Google,那么对象中的值应该是什么?即

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

如果我们使用 Google 作为 CognitoIdentityProvider ,谁能帮我解决这个对象属性的值? 请帮忙。

【问题讨论】:

标签: amazon-web-services amazon-cloudformation amazon-cognito


【解决方案1】:

Can I setup AWS Cognito User Pool Identity Providers with Cloudformation?相关的位

正如我在那里所说,对我有用的是:

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

【讨论】:

    猜你喜欢
    • 2020-04-25
    • 2020-07-06
    • 2017-01-05
    • 2021-07-26
    • 2019-03-30
    • 1970-01-01
    • 2018-08-29
    • 2020-08-14
    • 1970-01-01
    相关资源
    最近更新 更多