Skip to content

Latest commit

 

History

History

oauth2-error

OAuth2 custom error technical profile

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.

Call the custom error message from a user journey

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 Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation

Call the custom error message from transfer sub journey

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

live demo Live demo   Quick deploy Quick deploy   policy Policy   documentation Documentation