2017-10-17 15 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> 
関連する問題