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
GetAccounts should fetch local accounts from MSAL cache and the broker accounts and merge them by home_account_id.
RemoveAccount should remove the account and associted tokens from both local cache and from the broker
AcquireTokenSilent should first try to get a token from local cache and, if none is available, from the broker.
Note: the local cache should not contain an RT because the broker does not give MSAL the RT. If however an RT is present (e.g. from before the broker was installed), I am not sure how this scenario should be handled.
Actual behavior
GetAccounts does not merge local and broker accounts.
RemoveAccoutns does not remove local accoutns and tokens
ATS does not search the local cache
Impact
By not merging local state with broker state, developer does not have an overview of what accounts exist and thefore not be able to use AcquireTokenSilent, but have to rely on AcquireTokenInteractive.
This affects especially users who use an app before and after the broker is installed or who uninstall the broker.
The text was updated successfully, but these errors were encountered:
bgavrilMS
changed the title
[Bug] GetAccounts on Android + Broker is not consistent with Msal.Android behavior
[Bug] GetAccounts / RemoveAccounts on Android + Broker is not consistent with Msal.Android behavior
May 22, 2020
bgavrilMS
changed the title
[Bug] GetAccounts / RemoveAccounts on Android + Broker is not consistent with Msal.Android behavior
[Bug] GetAccounts / RemoveAccounts / AcquireTokenSilent on Android + Broker is not consistent with Msal.Android behavior
May 27, 2020
Which Version of MSAL are you using ?
4.13
Platform
android
Repro
Expected behavior
Note: the local cache should not contain an RT because the broker does not give MSAL the RT. If however an RT is present (e.g. from before the broker was installed), I am not sure how this scenario should be handled.
Actual behavior
GetAccounts does not merge local and broker accounts.
RemoveAccoutns does not remove local accoutns and tokens
ATS does not search the local cache
Impact
By not merging local state with broker state, developer does not have an overview of what accounts exist and thefore not be able to use AcquireTokenSilent, but have to rely on AcquireTokenInteractive.
This affects especially users who use an app before and after the broker is installed or who uninstall the broker.
The text was updated successfully, but these errors were encountered: