question

Octopus-1 avatar image
0 Votes"
Octopus-1 asked ·

How to test the Exception page in Azure B2C UserFlow

Hi,
I am customizing the templates using the userflow in azure b2c. All goes well except that I do not see how I can test and view the exception page. Any hint?
Thank you

azure-ad-b2c
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks Octopus-1 and Please use globalexception(Displays an error page when an exception or an error is encountered) or refer this page - https://docs.microsoft.com/en-us/azure/active-directory-b2c/page-layout#exception-page-globalexception.

e.g. <ContentDefinition Id="api.error">
<LoadUri>https://{Settings:BlobStorageAccount}.blob.core.windows.net/{Settings:BlobContainer}/html/global_exception.html</LoadUri>;
<RecoveryUri>~/common/default_page_error.html</RecoveryUri>
<DataUri>urn:com:microsoft:aad:b2c:elements:contract:globalexception:1.2.0</DataUri>
<Metadata>
<Item Key="DisplayName">Error page</Item>
</Metadata>
</ContentDefinition>

or other option using ApplicationInsights and please refer - https://stackoverflow.com/questions/54966167/azure-b2c-an-exception-has-occurred

Please let us know if above options work for you.

0 Votes 0 ·
Octopus-1 avatar image Octopus-1 JitendraRai-2073 ·

Hello @JitendraRai-2073 ,
What I am looking at is to deliberately let b2c throw an exception to reach the exception page, so that it fills up the div with id="api". In this case I can see the html content and hence customize my css to fit the UI for the website. Does this make sense?

0 Votes 0 ·

Thanks @Octopus-1 and fills up the div with id="api" is working for you and you can see the static html content with custom css then it is ok.

0 Votes 0 ·
Show more comments

0 Answers