Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

B2C: Can't upload custom policy with LocalizedString for captcha display control #125037

Open
benelori opened this issue Dec 3, 2024 · 1 comment

Comments

@benelori
Copy link

benelori commented Dec 3, 2024

I have an issue with uploading custom policy, which contains LocalizedString elements for the Captcha Display Control

According to the documentation https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids#captcha-display-control-example, we should be able to overwrite the text for the various controls using that example XML.

Here's an example from my attempt:

image

But I get the following error:

{
  "error": {
    "code": "AADB2C",
    "message": "Validation failed: 19 validation error(s) found in policy \"B2C_1A_TRUSTFRAMEWORKLOCALIZATION\" of tenant \"ixb2ctestdevth.onmicrosoft.com\".The localized string with ElementType: UxElement and Strin gId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_a udio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an i nvalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and Stri ngId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_ audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdTh e localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and Str ingId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype _audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdT he localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized strin g with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType: UxElement and StringId: captchatype_audio_help has an invalid StringIdThe localized string with ElementType : UxElement and StringId: captchatype_audio_help has an invalid StringId",
    "innerError": {
       <redacted>
    }
  }
}

Unfortunately, the error tells me that captchatype_audio_help is an invalid StringId. Please regard the fact that it has 19 validation errors, that just reflects that I'm trying to upload these strings in 19 languages.

I tried the other examples as well, and the only StringId that is recognized is captchaControlChallengeCode, none of the others work.

Please update the documentation with the correct string ids that we should use.

Thank you!

title: Localization string IDs - Azure Active Directory B2C

author: kengaderdus
manager: CelesteDG
ms.service: azure-active-directory

ms.date: 02/24/2024
ms.author: kengaderdus
ms.subservice: b2c
@PesalaPavan
Copy link
Contributor

@benelori
Thanks for your feedback! We will investigate and update as appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants