Azure B2C自定义策略具有用于SignUpSignIn和ProfileEdit策略的创建按钮

时间:2019-03-14 03:08:12

标签: azure-ad-b2c

我目前遇到Azure B2C IEF自定义策略的问题。在我的“ ProfileEdit” UserJourney中,向用户显示登录屏幕。这里的问题是,继续按钮实际上标记为“创建”。用户登录后,将向他们显示“编辑配置文件页面”。但是同样,继续按钮被标记为创建。

我做了很多研究。我在stackoverflow中找不到任何内容,并且已经阅读了Microsoft文档,并确保DataURI对于ContentDefinition是正确的。

当前数据URI如下:

urn:com:microsoft:aad:b2c:elements:contract:selfasserted:1.1.0

任何指导将不胜感激。

2 个答案:

答案 0 :(得分:1)

您可以使用localization自定义任何元素文本。

第一步是enable localization,以支持英语和其他任何语言:

<BuildingBlocks>
  ...
  <ContentDefinitions />
  <Localization>
    <SupportedLanguages DefaultLanguage="en">
      <SupportedLanguage>en</SupportedLanguage>
    </SupportedLanguages>
  </Localization>
</BuildingBlocks>

第二步是为每种页面定义的每种受支持语言定义the localized strings

<BuildingBlocks>
  ...
  <Localization>
    <SupportedLanguages />
    <LocalizedResources Id="api.selfasserted.profileupdate.en">
      <LocalizedStrings>
         <LocalizedString ElementType="UxElement" StringId="button_continue">Update</LocalizedString>
      </LocalizedStrings>
    </LocalizedResources>
  </Localization>
</BuildingBlocks>

最后一步是从页面定义到本地化资源declare references

<BuildingBlocks>
  ...
  <ContentDefinitions>
    <ContentDefinition Id="api.selfasserted.profileupdate">
      ...
      <LocalizedResourcesReferences MergeBehavior="Prepend">
         <LocalizedResourcesReference Language="en" LocalizedResourcesReferenceId="api.selfasserted.profileupdate.en" />
      </LocalizedResourcesReferences>
    </ContentDefinition>
  </ContentDefinitions>
  <Localization />
</BuildingBlocks>

答案 1 :(得分:1)

如果您不想进行本地化。您仍然可以在相关技术资料的元数据中更新按钮/标签值。

适合您的情况

  

在基本文件技术资料中添加新的元数据项    SelfAsserted-LocalAccountSignin-电子邮件,如下所示

<Metadata>
 ---
 <Item Key="language.button_continue">Continue</Item>
</Metadata>