Skip to content
New issue

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

[Bug] ATS fails to acquire token from New WAM Preview broker after a AT U/P flow #3961

Closed
1 of 7 tasks
gladjohn opened this issue Feb 11, 2023 · 1 comment
Closed
1 of 7 tasks

Comments

@gladjohn
Copy link
Contributor

gladjohn commented Feb 11, 2023

Logs and network traces
Exception: MSAL.NetCore.4.46.0.0.MsalUiRequiredException:
ErrorCode: failed_to_acquire_token_silently_from_broker
Microsoft.Identity.Client.MsalUiRequiredException: WAM Error
Error Code: 0
Error Message: Account has previously been signed out of this application.
Internal Error Code: 540940121

Which version of MSAL.NET are you using?
MSAL Latest

Platform
Net Core (shouldn't matter)

What authentication flow has the issue?

  • Desktop / Mobile
    • Interactive
    • Integrated Windows Authentication
    • Username Password
    • Device code flow (browserless)
  • Web app
    • Authorization code
    • On-Behalf-Of
  • Daemon app
    • Service to Service calls

Is this a new or existing app?
Dev App for MSAL

Repro

  1. Use the WAM Dev APP

  2. Use the U/P flow for the new broker

image

  1. Get Accounts

  2. Use the account you used to sign in with U/P flow and try ATS

Expected behavior
Token should be retrieved

Actual behavior
Exception: MSAL.NetCore.4.46.0.0.MsalUiRequiredException:
ErrorCode: failed_to_acquire_token_silently_from_broker
Microsoft.Identity.Client.MsalUiRequiredException: WAM Error
Error Code: 0
Error Message: Account has previously been signed out of this application.
Internal Error Code: 540940121

Note : if you are not able to repro the issue then the account you used may have been already signed in using ATI. Signout the account and then you should be able to see the repro

@gladjohn
Copy link
Contributor Author

gladjohn commented Mar 6, 2023

This is fixed in Interop 0.13.6, which will be consumed in the next version of MSAL

@pmaytak pmaytak closed this as completed Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants