Ad b2c custom policies - msverify otp sms message localization

Nghia Tien Nguyen 25 Reputation points
2023-11-30T10:29:34.76+00:00
In AD B2C Custom policies, is there anyway to translate the msverify otp sms message that send to user mobile device.

This is the content of sms message:

"Use verification code [ some code ] for [ b2c tenant ] authentication"

I need to set a different content for this message, as in german my IOS device can not recognize the otp code then auto-fill code does not work.

This is TechnicalProfile in custom policy:

        <TechnicalProfile Id="GenerateOtp">
          <DisplayName>Generate one time password</DisplayName>
          <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.OneTimePasswordProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
          <Metadata>
            <Item Key="Operation">GenerateCode</Item>
            <Item Key="CodeExpirationInSeconds">1200</Item>
            <Item Key="CodeLength">6</Item>
            <Item Key="CharacterSet">0-9</Item>
            <Item Key="ReuseSameCode">true</Item>
            <Item Key="NumRetryAttempts">5</Item>
          </Metadata>
          <InputClaims>
            <InputClaim ClaimTypeReferenceId="email" PartnerClaimType="identifier" />
          </InputClaims>
          <OutputClaims>
            <OutputClaim ClaimTypeReferenceId="otp" PartnerClaimType="otpGenerated" />
          </OutputClaims>
        </TechnicalProfile>

I find here the localization specification from MS : https://learn.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids But I can not find the translation for sms message.
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-12-06T08:08:26.6166667+00:00

    Hi @Nghia Tien Nguyen ,

    Thanks for reaching out.

    Unfortunately, Azure AD B2C localization do not provide SMS customization. However, it provides the capability to the use of a third-party SMS provider such as Twilio or your own custom SMS provider.

    You can leverage DisplayControls and a third-party SMS provider which will help you to use your own contextualized SMS message, custom Phone Number, as well as support localization and custom one-time password (OTP) settings to your application.

    Reference - Custom SMS verification in Azure Active Directory B2C

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.