简体   繁体   English

自定义策略的 Azure AD B2C UI 自定义

[英]Azure AD B2C UI customization for custom policy

How can i use my own designed UI for azure AD B2C custom policies.我如何将自己设计的 UI 用于 Azure AD B2C 自定义策略。 i am using this sample for custom policy.将此示例用于自定义策略。

A content definition enables a custom flow to refer to a custom page. 内容定义使自定义流能够引用自定义页面。

For example, if you're wanting to show a custom page for the sign-up or sign-in step, then you must set the LoadUri attribute of the api.signuporsignin ContentDefinition element, as follows:例如,如果您要为注册或登录步骤显示自定义页面,则必须设置api.signuporsignin ContentDefinition元素的LoadUri属性,如下所示:

<BuildingBlocks>
  <ContentDefinitions>
    <ContentDefinition Id="api.signuporsignin">
      <LoadUri>https://contoso.blob.core.windows.net/templates/unified.html</LoadUri>
      <RecoveryUri>~/common/default_page_error.html</RecoveryUri>
      <DataUri>urn:com:microsoft:aad:b2c:elements:unifiedssp:1.0.0</DataUri>
      <Metadata>
        <Item Key="DisplayName">Signin and Signup</Item>
      </Metadata>
    </ContentDefinition>
  </ContentDefinitions>
</BuildingBlocks>

Note that the sign-up or sign-in step references the api.signuporsignin content definition as follows:请注意,注册或登录步骤引用了api.signuporsignin内容定义,如下所示:

<UserJourneys>
  <UserJourney>
    <OrchestrationSteps>
      <OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.signuporsignin">

For more information about content definitions, see this reference article .有关内容定义的更多信息,请参阅此参考文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM