We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MSAL 4.40
.WithAccount(result.Account)
Actual: account picker shows up displaying ALL accounts Expected: account should be pre-selected
Root cause: tenant profiles seems to override the WAM account ID:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/master/src/client/Microsoft.Identity.Client/AuthenticationResult.cs#L145
Workaround:
Use app.GetAccountsAsync() to get the accounts again and pass in that account.
app.GetAccountsAsync()
The text was updated successfully, but these errors were encountered:
The account object from the cache has a property named WamAccountId which is needed to link an MSAL account to a WAM account.
WamAccountId
This is particularly important when using a 3p app and trying to use MSA accounts, because we can't link MSAL account to WAM account by usename.
Sorry, something went wrong.
neha-bhargava
Successfully merging a pull request may close this issue.
MSAL 4.40
.WithAccount(result.Account)
;Actual: account picker shows up displaying ALL accounts
Expected: account should be pre-selected
Root cause: tenant profiles seems to override the WAM account ID:
https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/master/src/client/Microsoft.Identity.Client/AuthenticationResult.cs#L145
Workaround:
Use
app.GetAccountsAsync()
to get the accounts again and pass in that account.The text was updated successfully, but these errors were encountered: