什么是数据类型?

What is the data type?

我正在使用 ADB2C 的自定义策略来创建屏幕。 登录和 MFA 中用户 ID 和密码的变量名称和数据类型是什么? 另外,MFA中phone号和确认码的变量名和数据类型是什么? 我不知道,因为它不是我描述的来源。

• 根据Microsoft 官方文档,Azure AD B2C 自定义策略中的用户名'signInNames.userName' 的变量属性表示 其数据类型为 'String'。同样,对于password,分配的变量属性是‘password’,它的数据类型是‘String’。对于 phone 号码,分配的属性是 'mobile''mobilePhone'并且数据类型是 'String' 但如果您想在 Azure AD B2C 中将 phone 数字用于 MFA,则变量属性因为它是 'strongAuthenticationAlternativePhoneNumber',它的数据类型是 'String'。剩下的 确认码 ,在 Azure AD B2C 中默认没有像其他前面指定的那样定义的属性,但是您肯定可以通过定义 'DisplayName'、'DataType''UserInputType' 用于自定义属性,如下所示:-

  <!-- 
   <BuildingBlocks>
    <ClaimsSchema> -->
<ClaimType Id="city">
  <DisplayName>City where you work</DisplayName>
  <DataType>string</DataType>
  <UserInputType>DropdownSingleSelect</UserInputType>
  <Restriction>
    <Enumeration Text="Berlin" Value="berlin" />
    <Enumeration Text="London" Value="london" />
    <Enumeration Text="Seattle" Value="seattle" />
  </Restriction>
</ClaimType>
 <!-- 
  </ClaimsSchema>
 </BuildingBlocks>-->

有关上述内容的更多信息,请参阅以下文档链接:-

https://docs.microsoft.com/en-us/azure/active-directory-b2c/configure-user-input?pivots=b2c-custom-policy#define-a-claim

https://docs.microsoft.com/en-us/azure/active-directory-b2c/user-profile-attributes