我可以使用Cloudformation设置AWS Cognito用户池身份提供商吗? [英] Can I setup AWS Cognito User Pool Identity Providers with Cloudformation?

查看:86
本文介绍了我可以使用Cloudformation设置AWS Cognito用户池身份提供商吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个认知用户池并使用cloudformation yml文件自动配置我的Google身份提供程序。

I want to setup a cognito user pool and configure my google identity provider automatically with a cloudformation yml file.

我检查了所有文档,但什至找不到任何内容接近做到这一点。有关如何执行操作的任何想法?

I checked all the documentation but could not find anything even close to doing this. Any idea on how to do it?

推荐答案

UserPoolIdentityProvider 已于2019年10月添加,官方文档

UserPoolIdentityProvider was added in Oct 2019, official docs.

您的CloudFormation看起来像

Your CloudFormation would then look 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

这篇关于我可以使用Cloudformation设置AWS Cognito用户池身份提供商吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆