0

I want to Customizing the message/error text in Azure AD B2C custom policie,Not getting a proper way to do this.has anyone done this in their B2C custom Policies

I want to customize the Verification is necessary. Please click Send button. test which is under "ver_intro_msg" id , I added following to Building Block. Let me know where it goes wrong

    <ContentDefinition Id="api.localaccountsignup">
    <Metadata>
    <Item Key="DisplayName">Local account sign up page</Item>
  </Metadata>

  <LocalizedResourcesReferences MergeBehavior="Prepend">
    <LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.localaccountsignup.en" />
  </LocalizedResourcesReferences>
  </ContentDefinition>
    </ContentDefinitions>
    <Localization Enabled="true">
  <SupportedLanguages DefaultLanguage="en" MergeBehavior="ReplaceAll">
    <SupportedLanguage>en</SupportedLanguage>
  </SupportedLanguages>
  <LocalizedResources Id="api.localaccountsignup.en">
    <LocalizedStrings>
  <LocalizedString ElementType="UxElement" StringId="ver_intro_msg">Wellcome to Buckman Compliance Portal</LocalizedString>
  <LocalizedString ElementType="UxElement" StringId="ver_info_msg">Cheak Your Regisered Mail For OTP</LocalizedString>
    </LocalizedStrings>
  </LocalizedResources>
</Localization>
amyy
  • 171
  • 3
  • 13
  • Are you passing the query parameter `ui_locales=en` as part of your auth request? – Jas Suri - MSFT Mar 17 '20 at 12:12
  • @JasSuri Yes..Do i need to add something else in building block other then what i mentioned ?? – amyy Mar 17 '20 at 15:34
  • Policy looks ok. Can you share the complete files minus any confidential data? – AlfredoRevilla-MSFT Mar 19 '20 at 17:43
  • @AlfredoRevilla here is my file link https://drive.google.com/file/d/1wwRc3yVJgSl2C629UiRGBFK6pRXq-WZm/view?usp=sharing ,kindly suggest something, ihave tried many many times. – amyy Mar 23 '20 at 13:08
  • @RohitChouhan send your base policy too. I copied the relevant elements and ver_intro_msg was replace by yours. – AlfredoRevilla-MSFT Mar 24 '20 at 14:39
  • @RohitChouhan here is how it looks (click the sign up now link): https://alfredowhoiamb2c1.b2clogin.com/AlfredoWhoiamB2C1.onmicrosoft.com/B2C_1A_signup_signin/api/CombinedSigninAndSignup/unified?local=signup&csrf_token=RFFTMWlkdWZvWmR1MUhoR0w2aEhiNHNWZ1loeE54MWVkbThsRmo2Vm9NbUE4eVJZRjExVWVERXptTFZHQlFMSlZIbUdpNHNpSmpJVWFRY3RoRmlGQ1E9PTsyMDIwLTAzLTI0VDE0OjQwOjA2LjgxNDU0NjlaO2ZEa2ZHcmFKcXl3OUo5djVXdC9tb1E9PTt7Ik9yY2hlc3RyYXRpb25TdGVwIjoxfQ==&tx=StateProperties=eyJUSUQiOiJkMjllNmQwYi1mOGRmLTQzMmUtOTc3Zi0yOTZkN2U1ZWY0YTgifQ&p=B2C_1A_signup_signin – AlfredoRevilla-MSFT Mar 24 '20 at 14:39
  • @AlfredoRevilla here is my base policy https://drive.google.com/file/d/1zCnAflF6NFrmpK91KaTba5e3ZS_1nwgA/view?usp=sharing – amyy Mar 25 '20 at 06:56
  • @AlfredoRevilla I followed this sample: https://github.com/azure-ad-b2c/samples/tree/master/policies/passwordless-email Do i also need to change something in base policy or somewhere else??? Thanks – amyy Mar 25 '20 at 07:00
  • @RohitChouhan should not be neccesary. I was asking it in case you changed it. Let me try that template and come back to you. – AlfredoRevilla-MSFT Mar 25 '20 at 14:24
  • @AlfredoRevilla can you cheak this thread https://stackoverflow.com/questions/60975989/avoid-verification-code-emails-when-the-user-is-not-registered-in-azure-ad-b2c/60983716?noredirect=1#comment107932604_60983716 – amyy Apr 08 '20 at 06:50
  • 1
    @RohitChouhan could you solve your first issue? I still need to go trough the provided template. Also I will take a look to the latest. – AlfredoRevilla-MSFT May 07 '20 at 17:30
  • @AlfredoRevilla Yes I got solution for first issue, fro second one somehow I achieve the goal but still looking for a proper solution . – amyy May 08 '20 at 11:19

0 Answers0