ClientApplicationBase.Users is always empty on iOS
See original GitHub issueThis reproduces reliably both in our app, and in the sample app here: https://github.com/Azure-Samples/active-directory-b2c-xamarin-native
It seems that, at least on iOS (I have not tested on other platforms), tokens are never added to the cache. Inspecting the ClientApplicationBase.Users
property always yields an empty enumerable, and calling the ClientApplicationBase.GetUser(string identifier)
method always returns null
.
I have checked this on a few different occasions in the authentication lifecycle, including immediately after a successful AcquireTokenAsync()
and also after app restart.
To see this, just run the sample app linked to above (the iOS version) in the iPhone Simulator, do a successful authentication, and then terminate and relaunch the app. You’ll see that the sign-in state is now back to signed out.
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (3 by maintainers)
Top GitHub Comments
@jennyf19 Yep.
@DaRosenberg - Started to document this in our wiki in MSAL.
Can we close this issue?
cc: @jmprieur