public interface AuthenticationCallback
AuthenticationResult
or MsalException
will be returned back via callback.Modifier and Type | Method and Description |
---|---|
void |
onCancel()
Will be called if user cancels the flow.
|
void |
onError(MsalException exception)
Error occurs during the authentication.
|
void |
onSuccess(AuthenticationResult authenticationResult)
Authentication finishes successfully.
|
void onSuccess(AuthenticationResult authenticationResult)
authenticationResult
- AuthenticationResult
that contains the success response.void onError(MsalException exception)
exception
- The MsalException
contains the error code, error message and cause if applicable. The exception
returned in the callback could be MsalClientException
, MsalServiceException
or
MsalUiRequiredException
.void onCancel()