1

我的用户 jurnet 中有以下技术配置文件,可生成如下所示的 UI:

<TechnicalProfile Id="SelfAsserted-Select-MFA-Method">
  <DisplayName>Allow user to choose their MFA Method</DisplayName>
  <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.SelfAssertedAttributeProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
  <Metadata>
    <Item Key="ContentDefinitionReferenceId">api.selfasserted</Item>
  </Metadata>
  <OutputClaims>
    <OutputClaim ClaimTypeReferenceId="extension_mfaByPhoneOrEmail" Required="true"/>
  </OutputClaims>
</TechnicalProfile>

在此处输入图像描述

我需要将“更新您当前的个人资料”消息更改为有意义的内容或将其删除。

通过这个 SO 问题(寻找一个简单的选项来更改 SelfAssertedAttributeProvider UI 的标题),我了解到最好的方法是使用此处记录的本地化:

https://docs.microsoft.com/en-us/azure/active-directory-b2c/localization-string-ids#sign-up-and-self-asserted-pages-user-interface-elements

不幸的是,上面的页面没有为上面指出的消息“更新您的当前配置文件”列出任何本地化字符串 ID。

上面指出的“更新您当前的个人资料”消息的本地化 ID 是什么?

有没有办法通过查看 UI 的 HTML 源代码或反汇编 DLL 来找到未记录的本地化 id?

更新1:

@juunas 方法看起来很有希望,但那里没有“更新您当前的个人资料”消息的痕迹。

{
    "ver_success_screenreader_msg": "E-mail address verified. You can now continue.",
    "month": "Month",
    "ver_but_default": "Default",
    "ver_fail_server": "We are having trouble verifying your email address. Please enter a valid email address and try again.",
    "ver_intro_msg": "Verification is necessary. Please click Send button.",
    "ver_fail_throttled": "There have been too many requests to verify this email address. Please wait a while, then try again.",
    "months": "January, February, March, April, May, June, July, August, September, October, November, December",
    "ver_input": "Verification code",
    "ver_fail_retry": "That code is incorrect. Please try again.",
    "error_requiredFieldMissing": "A required field is missing. Please fill out all required fields and try again.",
    "error_passwordEntryMismatch": "The password entry fields do not match. Please enter the same password in both fields and try again.",
    "helplink_text": "What is this?",
    "alert_yes": "Yes",
    "ver_sent": "Verification code has been sent to:",
    "verifying_blurb": "Please wait while we process your information.",
    "ver_but_edit": "Change e-mail",
    "ver_but_send": "Send verification code",
    "ver_success_msg": "E-mail address verified. You can now continue.",
    "cancel_message": "The user has cancelled entering self-asserted information",
    "ver_incorrect_format": "Incorect format.",
    "error_fieldIncorrect": "One or more fields are filled out incorrectly. Please check your entries and try again.",
    "alert_message": "Are you sure that you want to cancel entering your details?",
    "button_continue": "Continue",
    "alert_title": "Cancel Entering Your Details",
    "ver_fail_no_retry": "You&#39;ve made too many incorrect attempts. Please try again later.",
    "alert_no": "No",
    "preloader_alt": "Please wait",
    "ver_fail_code_expired": "That code is expired. Please request a new code.",
    "button_cancel": "Cancel",
    "ver_info_msg": "Verification code has been sent to your inbox. Please copy it to the input box below.",
    "ver_but_verify": "Verify code",
    "required_field": "This information is required.",
    "ver_but_resend": "Send new code",
    "initial_intro": "Please provide the following details.",
    "year": "Year",
    "day": "Day"
}

然而消息在 HTML 中:

在此处输入图像描述

4

1 回答 1

1

我通常在<head>页面部分的脚本元素中找到本地化字符串。它看起来像这样:

<script data-container="true" nonce="">
var SA_FIELDS = {
  "AttributeFields": [
    {
      "UX_INPUT_TYPE": "TextBox",
      "USER_INPUT_TYPE": "TextBox"
    }
  ]
};


var CONTENT = {
  "ver_success_screenreader_msg": "E-mail address verified. You can now continue.",
  "month": "Month",
  "ver_but_default": "Default",
  "ver_fail_server": "We are having trouble verifying your email address. Please enter a valid email address and try again.",
  "ver_intro_msg": "Verification is necessary. Please click Send button."
};
</script>

那里的CONTENT变量包含本地化的字符串。您还可以通过CONTENT在浏览器控制台中键入来查看其内容。

于 2020-09-22T19:37:18.967 回答