Skip to content

Instantly share code, notes, and snippets.

@rbrayb
Created January 17, 2019 20:03
Show Gist options
  • Save rbrayb/afc8803f0ca5f1041bed0a052248caa7 to your computer and use it in GitHub Desktop.
Save rbrayb/afc8803f0ca5f1041bed0a052248caa7 to your computer and use it in GitHub Desktop.
Customising the message text in Azure AD B2C custom policies
// Part of the file
<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>
<Localization Enabled="true">
<SupportedLanguages DefaultLanguage="en" MergeBehavior="ReplaceAll">
<SupportedLanguage>en</SupportedLanguage>
</SupportedLanguages>
<LocalizedResources Id="api.localaccountsignup.en">
<LocalizedStrings>
<LocalizedString ElementType="UxElement" StringId="ver_fail_no_retry">Attempt limit exceeded - please check your email for the correct code</LocalizedString>
</LocalizedStrings>
</LocalizedResources>
</Localization>
// Both are these are inside the <BuildingBlocks> sction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment