如何在Azure AD B2C中创建自定义错误页自订政策 [英] How to Create a Custom Error Page in Azure AD B2C | Custom Policies
本文介绍了如何在Azure AD B2C中创建自定义错误页自订政策的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用自定义时策略,如何为<UserJourney>
指定错误页面?基于TFP基本xml文件中的值,我以为它将是<RecoveryUri>
,但那是行不通的.
When using custom policies, how can I specify the error page for a <UserJourney>
? Based on the values in the TFP base xml file, I would have thought it would be <RecoveryUri>
but that is not working.
<ContentDefinition Id="api.signuporsignin-ext-local">
<!-- <LoadUri>~/tenant/default/unified.cshtml</LoadUri> -->
<LoadUri>https://localhost:44377/</LoadUri>
<!-- <RecoveryUri>~/common/default_page_error.html</RecoveryUri> -->
<RecoveryUri>https://localhost:44377/Home/Error</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:unifiedssp:1.0.0</DataUri>
<Metadata>
<Item Key="DisplayName">Signin and Signup</Item>
</Metadata>
</ContentDefinition>
当前结果:
Current Result:
推荐答案
您想更新api.error
内容定义:
<!-- This content definition is to render an error page that displays unhandled errors. -->
<ContentDefinition Id="api.error">
<LoadUri>~/tenant/default/exception.cshtml</LoadUri>
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:globalexception:1.1.0</DataUri>
<Metadata>
<Item Key="DisplayName">Error page</Item>
</Metadata>
</ContentDefinition>
这篇关于如何在Azure AD B2C中创建自定义错误页自订政策的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文