简体   繁体   English

Azure B2C活动目录

[英]Azure B2C Active Directory

I would like to use Azure B2C Active Directory and source users under local account as email ( joe@some-email.com ) and also as username (for example - joe123 ). 我想将Azure B2C Active Directory和本地帐户下的源用户用作电子邮件( joe@some-email.com )和用户名(例如joe123 )。 Within the portal, under local accounts in B2C, you can select either email or username and I cannot find a way to add both types of local accounts, appears it's mutually exclusive between email type or username type. 在门户中,在B2C中的本地帐户下,您可以选择emailusername ,但是我找不到添加两种类型的本地帐户的方法,因为它在电子邮件类型或用户名类型之间是互斥的。

Wanted to confirm, if there a way to configure B2C that works with both types of sign-ins where a user can provide any valid email no matter what the domain is and at the same time allow users to sign-in by just providing a username. 想要确认的是,是否有一种方法可以配置适用于两种登录类型的B2C ,无论域是什么用户都可以提供任何有效的电子邮件,同时允许用户仅提供用户名即可登录。 In case they are exclusive, is there a preferred solution that would allow both type of sign-in to coexist. 如果它们是互斥的,那么有没有一种首选的解决方案可以使两种登录类型共存。

No, you cannot use both of them, as if local account set to use email then that email goes to username field inside user account. 不,您不能同时使用它们,就像本地帐户设置为使用电子邮件一样,该电子邮件将转到用户帐户中的用户名字段。 There is also email claim in user account profile. 用户帐户资料中也有电子邮件声明。 But if let's say you select local account with email and also select that claim again email will be asked once and only go to username field. 但是,假设您选择了带有电子邮件的本地帐户,然后再次选择该声明,系统将只询问一次电子邮件,仅进入用户名字段。 Also email uniqueness will be checked only if it is used for sign-in. 此外,只有在用于登录时,才会检查电子邮件的唯一性。 If you use username for local account sign-in then multiple users can be registered with same valid email 如果您使用用户名进行本地帐户登录,则可以使用相同的有效电子邮件注册多个用户

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM