2017-10-17 99 views
0

使用custom policies時,如何指定<UserJourney>的錯誤頁面?根據TFP基本xml文件中的值,我會認爲它會是<RecoveryUri>,但那不起作用。如何在Azure AD B2C |中創建自定義錯誤頁面自定義策略

<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 error view

回答

1

您將要更新的內容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> 
相關問題