question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ClientApplicationBase.Users is always empty on iOS

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DaRosenbergcommented, Jun 29, 2018

@jennyf19 Yep.

0reactions
jennyf19commented, Jun 29, 2018

@DaRosenberg - Started to document this in our wiki in MSAL.

Can we close this issue?

cc: @jmprieur

Read more comments on GitHub >

github_iconTop Results From Across the Web

AspNetCore 2.0 Claims always empty
When I go into an anonymous method and inspect the user object, it is empty - no authentication type, no claims, etc.
Read more >
Failed to prepare this device for deployment
1 and the project designed to support IOS 14.1. My fix was to shutdown Xcode, reboot the iPAD, reconnect the iPad. All other...
Read more >
How To Clear "Other" Storage on iPhone & iPad ... - YouTube
If you have an iOS or iPadOS device that is constantly out of storage, here are some quick ways to free up space....
Read more >
Troubleshooting iOS/iPadOS device enrollment errors in ...
Suggestions for troubleshooting some of the most common enrollment and sync token errors when enrolling iOS/iPadOS devices in Intune.
Read more >
Clear, allow & manage cookies in Chrome - iPhone & iPad
Clear, allow & manage cookies in Chrome. You can choose to delete existing cookies, allow or block all cookies, and set preferences for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found