This folder contains unit tests for Azure AD B2C OAuth2 custom error technical profile. For more information, check out the Define an OAuth2 custom error technical profile article.
The unit test returns error to the https://jwt.ms web app from a user journey. To test the user experience, provide an error code and error message. Selected Continue to return the error message.
The unit test defines the following components:
- ExperimentalSetupTechnicalProfile - Self-asserted technical profile where you provide the error code and message.
- ExperimentalTechnicalProfile - The unit test
Live demo Quick deploy Policy Documentation
The unit test returns error to the https://jwt.ms web app from a sub journey (type of transfer). To test the user experience, provide an error code and error message. Selected Continue to return the error message. Note, the type of the sub journey must be transfer
.
The unit test defines the following components:
- ExperimentalSetupTechnicalProfile - Self-asserted technical profile where you provide the error code and message.
- ExperimentalSubJourney - The transfer sub journey. It calls the ExperimentalTechnicalProfile technical profile.
- ExperimentalTechnicalProfile - The unit test