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] Tenant profiles are not returned in GetAccounts for broker tokens #3349

Closed
pmaytak opened this issue May 25, 2022 · 0 comments · Fixed by #3356
Closed

[Bug] Tenant profiles are not returned in GetAccounts for broker tokens #3349

pmaytak opened this issue May 25, 2022 · 0 comments · Fixed by #3356
Assignees
Labels
Milestone

Comments

@pmaytak
Copy link
Contributor

pmaytak commented May 25, 2022

Which version of MSAL.NET are you using?
Latest

Repro

  1. Use NetCoreWinFormsWam dev app.
  2. Clean MSAL cache.
  3. Select Use WAM.
  4. Login interactively with an account.
  5. MSAL cache should have an access token, account, ID token, but no refresh token.
  6. Call GetAccounts.
  7. Observe that one account is returned but tenant profiles are empty.

Actual behavior
In GetAccounts this code that adds tenant profiles is skipped because there are no refresh tokens in broker flow. And this code doesn't add them.

Expected behavior
Tenant profiles should be returned.

@pmaytak pmaytak added this to Triage in MSAL.NET (legacy) via automation May 27, 2022
@pmaytak pmaytak added this to the 4.45.0 milestone May 27, 2022
@pmaytak pmaytak self-assigned this May 27, 2022
@pmaytak pmaytak moved this from Triage to In Progress in MSAL.NET (legacy) May 27, 2022
@pmaytak pmaytak changed the title [Bug] Tenant profiles are not returned when using WAM [Bug] Tenant profiles are not returned in GetAccounts for broker tokens Jun 2, 2022
MSAL.NET (legacy) automation moved this from In Progress to Fixed Jun 6, 2022
This was referenced Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
1 participant