[英]Creating unique custom attributes on AWS Cognito
I need to create a custom attribute that is unique for each of the users inside my User Pool
. 我需要为我的
User Pool
每个用户创建一个唯一的自定义属性。 Is there a way for me to do it with a custom attribute using AWS Cognito
? 有没有办法让我使用
AWS Cognito
使用自定义属性来完成它?
I'm integrating the AWS-SDK
in JavaScript. 我正在使用JavaScript集成
AWS-SDK
。
Such a setting is not possible for custom attributes. 自定义属性无法进行此类设置。 The only attributes that work that way are alias attributes (they will need to be unique).
这种方式的唯一属性是别名属性(它们需要是唯一的)。 These are email, phone_number, and preferred_username.
这些是email,phone_number和preferred_username。 Email and phone_number would need to be verified to be used that way.
需要验证电子邮件和phone_number是否以这种方式使用。 The only workaround I can think about is using one of the aliases to emulate this behavior.
我能想到的唯一解决方法是使用其中一个别名来模拟这种行为。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.