AD B2C Localization of Forced Password Reset form

Sid Mohiddin 31 Reputation points
2022-11-18T12:42:16.753+00:00

Using sample, https://github.com/azure-ad-b2c/samples/blob/master/policies/force-password-reset/policy/TrustFrameworkExtensions_ForcePasswordReset.xml.

I am trying to localise "Your password has expired, please change to a new password." In the sample it is being refered to like so:-

<InputClaim ClaimTypeReferenceId="userMsg" DefaultValue="Your password has expired, please change to a new password." />

I have a Localization file where I have been able to translate the Verify Code Form, but can't get a handle to update localization on the force Password reset form.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,759 questions
0 comments No comments
{count} votes

Accepted answer
  1. James Hamil 23,136 Reputation points Microsoft Employee
    2022-11-21T22:40:29.72+00:00

    Hi @Sid Mohiddin , try using GetLocalizedStringsTransformation instead.

    <Localization Enabled="true">  
      <SupportedLanguages DefaultLanguage="en" MergeBehavior="Append">  
        <SupportedLanguage>en</SupportedLanguage>  
        <SupportedLanguage>es</SupportedLanguage>  
       </SupportedLanguages>  
      
      <LocalizedResources Id="api.localaccountsignup.en">  
        <LocalizedStrings>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_subject">Contoso account email verification code</LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_message">Thanks for verifying your account!</LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_code">Your code is</LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_signature">Sincerely</LocalizedString>  
         </LocalizedStrings>  
       </LocalizedResources>  
       <LocalizedResources Id="api.localaccountsignup.es">  
         <LocalizedStrings>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_subject">Código de verificación del correo electrónico de la cuenta de Contoso</LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_message">Gracias por comprobar la cuenta de </LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_code">Su código es</LocalizedString>  
          <LocalizedString ElementType="GetLocalizedStringsTransformationClaimType" StringId="email_signature">Atentamente</LocalizedString>  
        </LocalizedStrings>  
      </LocalizedResources>  
    </Localization>  
    
    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sid Mohiddin 31 Reputation points
    2022-11-22T15:18:47.747+00:00

    Thank you for the solution. Worked well.

    2 people found this answer helpful.
    0 comments No comments