1
votes

I have set up custom policies for Azure AD B2C using the LocalAndSocialAccount starter pack. I am trying to remove the display name from the sign up UI. I have read previously that this can be accomplished simply by removing <OutputClaim ClaimTypeReferenceId="displayName" /> in the LocalAccountSignUpWithLogonEmail technical profile.

However this does not seem to work for me. Can anyone offer any insight on any fixes?

My TrustFrameworkExtensions.xml:

<ClaimsProvider>
      <DisplayName>Local Account</DisplayName>
      <TechnicalProfiles>
        <!--Local account sign-up page-->
        <TechnicalProfile Id="LocalAccountSignUpWithLogonEmail">
          <OutputClaims>
          <OutputClaim ClaimTypeReferenceId="email" PartnerClaimType="Verified.Email" Required="true" />
          <OutputClaim ClaimTypeReferenceId="newPassword" Required="true" />
          <OutputClaim ClaimTypeReferenceId="reenterPassword" Required="true" />
          <OutputClaim ClaimTypeReferenceId="givenName" />
          <OutputClaim ClaimTypeReferenceId="surName" />
          <OutputClaim ClaimTypeReferenceId="dateOfBirth" />
          <OutputClaim ClaimTypeReferenceId="verificationCode"/>
        </OutputClaims>
      </TechnicalProfile>
      </TechnicalProfiles>
</ClaimsProvider>

My SignUporSignIn.xml:

<RelyingParty>
    <DefaultUserJourney ReferenceId="SignUpOrSignIn" />
    <TechnicalProfile Id="PolicyProfile">
      <DisplayName>PolicyProfile</DisplayName>
      <Protocol Name="OpenIdConnect" />
      <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="givenName" />
        <OutputClaim ClaimTypeReferenceId="surname" />
        <OutputClaim ClaimTypeReferenceId="email" />
        <OutputClaim ClaimTypeReferenceId="verificationCode" DefaultValue=""/>
        <OutputClaim ClaimTypeReferenceId="dateOfBirth" />
        <OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub"/>
        <OutputClaim ClaimTypeReferenceId="tenantId" AlwaysUseDefaultValue="true" DefaultValue="{Policy:TenantObjectId}" />

      </OutputClaims>
      <SubjectNamingInfo ClaimType="sub" />
    </TechnicalProfile>
</RelyingParty>
1

1 Answers

0
votes

It’s because your technical profile is merged with the “base” files of this file. So since it exists in base, its not working. Either change your technical profile id so that it’s not merging with the one in the base file, or delete the output claim in the base file.