自定义策略的Azure AD B2C UI自定义 [英] Azure AD B2C UI customization for custom policy
问题描述
我如何使用自己设计的UI来执行Azure AD B2C自定义策略.我正在使用此自定义政策示例.
How can i use my own designed UI for azure AD B2C custom policies. i am using this sample for custom policy.
推荐答案
内容定义使自定义流程可以引用自定义页面.
A content definition enables a custom flow to refer to a custom page.
例如,如果要显示用于注册或登录步骤的自定义页面,则必须设置 api.signuporsignin ContentDefinition
元素,如下所示:
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:
<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>
请注意,注册或登录步骤引用了 api.signuporsignin 内容定义,如下所示:
Note that the sign-up or sign-in step references the api.signuporsignin content definition as follows:
<UserJourneys>
<UserJourney>
<OrchestrationSteps>
<OrchestrationStep Order="1" Type="CombinedSignInAndSignUp" ContentDefinitionReferenceId="api.signuporsignin">
有关内容定义的更多信息,请参见此参考文章.
For more information about content definitions, see this reference article.
这篇关于自定义策略的Azure AD B2C UI自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!