How can you create a signin in Azure B2C custom policies with type of document, number of document and password? - Stack Overflo

I'm trying to add the display claims to the technical profile SelfAsserted-LocalAccountSignin-Emai

I'm trying to add the display claims to the technical profile SelfAsserted-LocalAccountSignin-Email but but then it does somehting strange with the layout. It only shows two filds: the type of document and another one that look like combination of the number of document and the password. (I don't really know what I'm doing)

enter image description here

<ClaimsSchema>
    <ClaimType Id="documentType">
        <DisplayName>Document Type</DisplayName>
        <DataType>string</DataType>
        <UserHelpText />
        <UserInputType>TextBox</UserInputType>
        <Restriction>
          <Pattern RegularExpression="^[a-zA-Z0-9]+[a-zA-Z0-9_-]*$"
            HelpText="..." />
        </Restriction>
      </ClaimType>
      <ClaimType Id="documentNumber">
        <DisplayName>Document Number</DisplayName>
        <DataType>string</DataType>
        <UserHelpText />
        <UserInputType>TextBox</UserInputType>
        <Restriction>
            <Pattern RegularExpression="^[a-zA-Z0-9]+[a-zA-Z0-9_-]*$" HelpText="..." />
        </Restriction>
    </ClaimType>
</ClaimsSchema>

<TechnicalProfile Id="SelfAsserted-LocalAccountSignin-Email">
    <DisplayName>Local Account Signin</DisplayName>
    <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
    <Metadata>
        <Item Key="SignUpTarget">SignUpWithLogonEmailExchange</Item>
        <Item Key="setting.operatingMode">Email</Item>
        <Item Key="ContentDefinitionReferenceId">api.localaccountsignin</Item>
        <Item Key="IncludeClaimResolvingInClaimsHandling">true</Item>
    </Metadata>
    <IncludeInSso>false</IncludeInSso>
    <InputClaims>
        <InputClaim ClaimTypeReferenceId="signInName" DefaultValue="{OIDC:LoginHint}" AlwaysUseDefaultValue="true" />
        </InputClaims>
        <DisplayClaims>
            <DisplayClaim ClaimTypeReferenceId="documentType" Required="true" />
            <DisplayClaim ClaimTypeReferenceId="documentNumber" Required="true" />
            <DisplayClaim ClaimTypeReferenceId="password" Required="true" />
        </DisplayClaims>
        <OutputClaims>
            <OutputClaim ClaimTypeReferenceId="documentType" Required="true" />
            <OutputClaim ClaimTypeReferenceId="documentNumber" Required="true" />
            <OutputClaim ClaimTypeReferenceId="password" Required="true" />
            <OutputClaim ClaimTypeReferenceId="objectId" />
            <OutputClaim ClaimTypeReferenceId="authenticationSource" />
        </OutputClaims>
        <ValidationTechnicalProfiles>
            <ValidationTechnicalProfile ReferenceId="login-NonInteractive" />
        </ValidationTechnicalProfiles>
        <UseTechnicalProfileForSessionManagement ReferenceId="SM-AAD" />
    </TechnicalProfile>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742396103a4435977.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信