Azure B2C自定义策略已为SignUpSignIn和ProfileEdit策略创建按钮

问题描述 投票:0回答:2

我目前遇到Azure B2C IEF自定义策略的问题。在我的“ProfileEdit”UserJourney中向用户显示登录屏幕。这里的问题是,“继续”按钮实际上标记为“创建”。用户登录后,会显示“编辑个人资料”页面。但同样,continue按钮标记为create。

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

当前的数据URI如下:

金塔:COM:微软:AAD:B2C:元素:合同:selfasserted:1.1.0

任何指导将不胜感激。

azure-ad-b2c
2个回答
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
投票

如果你不想去本地化。您仍然可以更新相关技术配置文件的元数据中的按钮/标签值。

适合您的场景

在基本文件技术配置文件中添加新的元数据项SelfAsserted-LocalAccountSignin-Email如下所示

<Metadata>
 ---
 <Item Key="language.button_continue">Continue</Item>
</Metadata>
© www.soinside.com 2019 - 2024. All rights reserved.