WebOct 15, 2024 · 1 IPublicClientApplication.GetAccountsAsync () returns only empty array in xamarin forms app. so it ask to login every time app launches. -- Expected behavior After first login, I think _pca.GetAccountsAsync () should return accounts list and be able to … WebDec 7, 2024 · This works fine for getting tokens. The problem is that when you call app.GetAccountsAsync(), MSAL needs to filter by the environment (public cloud, Fairfax, etc.) but it doesn’t have this information, so it uses the default (public cloud). Hence GetAccountsAsync() returns 0 accounts, because all your accounts are Fairfax.
.net - IPublicClientApplication.GetAccountsAsync() returns only …
WebOct 8, 2024 · A solution is to get Pca.GetAccountsAsync() to return the tokens while offline or have another way to get hold of them. I also tried your suggested edit but GetAccountByPolicy() is never hit due to the exception. Can I please have a look at your sample app that works? Thanks for your help. WebJun 4, 2024 · GetAccountsAsync always returning an empty list Ask Question Asked 2 years, 10 months ago Modified 2 years, 10 months ago Viewed 268 times 2 I am trying to silently acquire a token, but the list of accounts is always empty. However, when I switch to acquiring the token interactively, then I always get at least the windows default account. how does pa government work
[Bug] GetAccountAsync returns null when account is in returned ... - GitHub
WebJul 11, 2024 · Details. In Visual Studio, I set a breakpoint on TasksController.cs line 29: var accounts = await cca.GetAccountsAsync (); I can verify that this LOC is hit whenever I navigate to /Tasks. Stepping into each LOC called following that, I reviewed each part of the call stack to see where a null was being returned. GetAccountsAsync () WebJun 11, 2024 · Hi guys, I'm developing a little WPF-App that is supposed to query some data from the MS Graph API. I want to use SSO, so the user doesn't have to login to the app seperatly. The app is run on a Azure AD joined device. The user is an AADC synchronized AD user. The AAD tenant is federated with ... · Hi, Thanks for posting here. This forum is … WebGetAccountsAsync (String) Applies to Microsoft Authentication Library for .NET (MSAL.NET) latest GetAccountsAsync () Returns all the available accounts in the user token cache for the application. C# public System.Threading.Tasks.Task> … how does pain affect mood