Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Exceptions in ADAL4J

Navya Canumalla edited this page May 19, 2018 · 5 revisions

ADAL4J proposes 2 exception classes:

  • AuthenticationException is used directly for exceptions which are local to the library
  • AdalClaimsChallengeException is an exception thrown by the service in case a resource requires more claims from the user (for instance 2-factor authentication).

Handling AdalClaimChallengeException

You can read about conditional access here and see the Java web application sample to see how to handle an AdalClaimsChallengeException.