You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this a new or existing app?
The app is in production and we have migrated from ADAL to MSAL
Repro
authResult = await pc.AcquireTokenSilent(scopes, account).ExecuteAsync();
DataInsightsProvider.Instance.TrackEvent(DataInsightsEvents.FetchTokenSilentlySuccess);
}
catch (MsalUiRequiredException e)
{
// This exception is expected if there is no token in the cache.
this.logger.Log($"{_logTagAuth}: Encountered error during silent authentication." +
$" Error code = {e.ErrorCode}. Exception: {e}");
}
Expected behavior
If a silent token acquisitaion call fails due to reason such as (no account found or broken resfresh toke is invalid) insted of MSAL Service Exception we should get MSAL UI Required Exception so that we a interactive signin is performed.
Actual behavior
For some user in their session when a silent token acquistion is taking place MSAL Service Exception is thrown from broker
with error codes no_account_found or broker refresh token is invalid
Possible Solution
These error should throw a MSAL UI Required Exception
Additional context/ Logs / Screenshots
{"Error Message":"Non-Graph Authentication Error:","Exception Message":"Broker response returned error: Account does not exist in the broker, cannot proceed with silent request"}
"Message":"nt.Internal.Requests.SilentBrokerAuthStrategy.SendTokenRequestToBrokerAsync ()
From the logs from telemetry error is returned from this function (while broker is trying to silently acquire token)
The text was updated successfully, but these errors were encountered:
bgavrilMS
changed the title
Getting MSAL Service Exception no_account_found and Broker refresh token is invalid
MSAL does not throw UiRequiredException when it should (Android Broker scenarios)
Oct 28, 2020
Which Version of MSAL are you using ?
4.20
Platform
Xamrin.Android
What authentication flow has the issue?
Mobile
Other? - please describe;
Is this a new or existing app?
The app is in production and we have migrated from ADAL to MSAL
Repro
Expected behavior
If a silent token acquisitaion call fails due to reason such as (no account found or broken resfresh toke is invalid) insted of MSAL Service Exception we should get MSAL UI Required Exception so that we a interactive signin is performed.
Actual behavior
For some user in their session when a silent token acquistion is taking place MSAL Service Exception is thrown from broker
with error codes no_account_found or broker refresh token is invalid
Possible Solution
These error should throw a MSAL UI Required Exception
Additional context/ Logs / Screenshots
{"Error Message":"Non-Graph Authentication Error:","Exception Message":"Broker response returned error: Account does not exist in the broker, cannot proceed with silent request"}
"Message":"nt.Internal.Requests.SilentBrokerAuthStrategy.SendTokenRequestToBrokerAsync ()
From the logs from telemetry error is returned from this function (while broker is trying to silently acquire token)
The text was updated successfully, but these errors were encountered: