Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 1.17 KB

active-directory-develop-error-handling-introduction.md

File metadata and controls

21 lines (16 loc) · 1.17 KB
author ms.author ms.date ms.service ms.subservice ms.topic
mmacy
marsma
11/25/2020
active-directory
develop
include

This article gives an overview of the different types of errors and recommendations for handling common sign-in errors.

MSAL error handling basics

Exceptions in Microsoft Authentication Library (MSAL) are intended for app developers to troubleshoot, not for displaying to end users. Exception messages are not localized.

When processing exceptions and errors, you can use the exception type itself and the error code to distinguish between exceptions. For a list of error codes, see Azure AD Authentication and authorization error codes.

During the sign-in experience, you may encounter errors about consents, Conditional Access (MFA, Device Management, Location-based restrictions), token issuance and redemption, and user properties.

The following section provides more details about error handling for your app.