99public class AuthenticationErrorCode {
1010
1111 /**
12- * In the context of device code user has not yet authenticated via browser
12+ * In the context of device code user has not yet authenticated via browser. For more details,
13+ * see https://aka.ms/msal4j-device-code
1314 */
1415 public final static String AUTHORIZATION_PENDING = "authorization_pending" ;
1516
1617 /**
1718 * In the context of device code, this error happens when the device code has expired before
18- * the user signed-in on another device (this is usually after 15 min)
19+ * the user signed-in on another device (this is usually after 15 min). For more details, see
20+ * https://aka.ms/msal4j-device-code
1921 */
2022 public final static String CODE_EXPIRED = "code_expired" ;
2123
2224 /**
2325 * Standard Oauth2 protocol error code. It indicates that the application needs to expose
24- * the UI to the user so that user does an interactive action in order to get a new token
26+ * the UI to the user so that user does an interactive action in order to get a new token.
2527 */
2628 public final static String INVALID_GRANT = "invalid_grant" ;
2729
@@ -32,7 +34,7 @@ public class AuthenticationErrorCode {
3234
3335 /**
3436 * Password is required for managed user. Will typically happen when trying to do integrated windows authentication
35- * for managed users
37+ * for managed users. For more information, see https://aka.ms/msal4j-iwa
3638 */
3739 public final static String PASSWORD_REQUIRED_FOR_MANAGED_USER = "password_required_for_managed_user" ;
3840
@@ -60,7 +62,7 @@ public class AuthenticationErrorCode {
6062 /**
6163 * The current redirect URI is not a loopback URL. To use the OS browser, a loopback URL must be
6264 * configured both during app registration as well as when initializing the InteractiveRequestParameters
63- * object
65+ * object. For more details, see https://aka.ms/msal4j-interactive-request
6466 */
6567 public final static String LOOPBACK_REDIRECT_URI = "loopback_redirect_uri" ;
6668
@@ -70,19 +72,22 @@ public class AuthenticationErrorCode {
7072 public final static String UNABLE_TO_START_HTTP_LISTENER = "unable_to_start_http_listener" ;
7173
7274 /**
73- * Authorization result response is invalid, either because format is invalid or it does not contain
74- * an authorization code .
75+ * Authorization result response is invalid. Authorization result must contain authorization
76+ * code and state .
7577 */
7678 public final static String INVALID_AUTHORIZATION_RESULT = "invalid_authorization_result" ;
7779
7880 /**
7981 * Redirect URI provided to MSAL is of invalid format. Redirect URL must be a loopback URL.
82+ * For more details, see https://aka.ms/msal4j-interactive-request
8083 */
8184 public final static String INVALID_REDIRECT_URI = "invalid_redirect_uri" ;
8285
8386 /**
8487 * MSAL was unable to open the user-default browser. This is either because the current platform
85- * does not support {@link java.awt.Desktop} or {@link java.awt.Desktop.Action#BROWSE}
88+ * does not support {@link java.awt.Desktop} or {@link java.awt.Desktop.Action#BROWSE}. Interactive
89+ * requests require that the client have a system default browser. For more details, see
90+ * https://aka.ms/msal4j-interactive-request
8691 */
8792 public final static String DESKTOP_BROWSER_NOT_SUPPORTED = "desktop_browser_not_supported" ;
8893}
0 commit comments