gpt4 book ai didi

amazon-web-services - 如何使用 CloudFormation 允许使用用户名和电子邮件登录的 AWS Cognito 配置?

转载 作者:行者123 更新时间:2023-12-03 07:23:23 25 4
gpt4 key购买 nike

我想创建Cognito(使用CLOUDFORMATION),允许使用用户名和电子邮件登录,我已经浏览过AWS user pool documents并关注Cognito Doc ,但没有找到任何解决办法。 enter image description here

最佳答案

您可以在此处检查用户池的云信息:link

关于您的问题:

将“AliasAttributes”与包含字符串“email”、“preferred_username”的数组一起使用

yaml:

别名属性:

  • 电子邮件
  • 首选用户名

json:

“AliasAttributes”:[“电子邮件”,“首选用户名”]

编辑: AliasAttributes 而不是 UsernameAttributes

关于amazon-web-services - 如何使用 CloudFormation 允许使用用户名和电子邮件登录的 AWS Cognito 配置?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68314417/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com