amazon-web-services - 如何在 JSON 中的 AWS CloudFormation 模板中将 google 添加为 AWS cognito 身份提供商
问题描述
我正在使用亚马逊网络服务。在 AWS CloudFormation 中,我在 JSON 中创建了一个模板,我必须在其中添加身份池作为资源,我必须使用 Google 作为 Cognito 身份提供者。如果我们在 CognitoIdentityProvider 中使用 Google,那么对象中的值应该是什么?IE
"CognitoIdentityProvider":[
{
"ClientId": String,
"ProviderName": String,
"ServerSideTokenCheck": Boolean
}
]
如果我们将 Google 用作 CognitoIdentityProvider ,任何人都可以帮助我了解此对象属性的值吗?请帮忙。
解决方案
与我可以使用 Cloudformation 设置 AWS Cognito 用户池身份提供商相关的位吗?
正如我在那里所说,对我有用的是:
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
推荐阅读
- pyspark - 如何在 Eclipse IDE 中修复“异常:Java 网关进程在发送其端口号之前退出”
- c++ - 为什么以 const char* 返回时会在此处创建临时字符串?[Stroustrup 的书例]
- ruby-on-rails - AWS S3 文件上传返回 403:Forbidden with Carrierwave/fog gems in Rails
- ionic-framework - 如何在 ionic 4 中从一页移动到另一页?
- amazon-web-services - 如何将来自 AWS IoT 的 MQTT 主题的读取分配给多个消费者?
- jquery - 如何在 Bootstrap pincode 输入框中设置值?
- tensorflow - 索引 = 2 不在 [0, 1) 中
- javascript - Angular 工厂定义打破了需求
- asp.net-mvc - 为 ADFS 身份验证跳过 Home Realm Discovery 页面
- jenkins - Tomcat 上的 Jenkins War 部署