更新时间:2023-11-17 12:31:28
内容定义使自定义流程可以引用自定义页面.
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.