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

Add support for MSA passthrough for silent token acquisition calls through the boker #4419

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

iulico-1
Copy link
Contributor

@iulico-1 iulico-1 commented Nov 14, 2023

Fixes #4425
Currently MSA passthrough doesn't work as expected for silent token acquisition flows because MSAL.net normalizes /organizations authority using accounts home tenant. This logic made sense for V1 requests, but it breaks MSA passthrough flows using the runtime.

Changes proposed in this request
Stop normalizing /organizations authority for MSA passthrough flows.

Testing
Unit and component tests added.

Performance impact
Negligible

Copy link
Member

@bgavrilMS bgavrilMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great unit tests. LGTM

@bgavrilMS
Copy link
Member

@iulico-1 - could you please open a bug or feature request on MSAL.NET and associate it with this PR? This is so that the change gets included in the release notes.

iulico-1 and others added 2 commits November 16, 2023 13:18
…AuthorityTests.cs


Async methods should be suffixed with "async" (enforced by an analyzer)
@bgavrilMS bgavrilMS force-pushed the iulico/fix-msa-passthrough-broker branch from d22ae22 to 3f6b099 Compare November 16, 2023 13:18
@iulico-1 iulico-1 enabled auto-merge (squash) November 17, 2023 09:16
@bgavrilMS
Copy link
Member

bgavrilMS commented Nov 17, 2023

@gladjohn, @ashok672 - can we get a sign-off on this please? We enforce a 2-reviewer policy in MSAL.NET.
@iulico-1 - when we want to release this directly or will Visual Studio be ok with testing with a private package initially?

Copy link
Contributor

@ashok672 ashok672 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@iulico-1 iulico-1 merged commit da67f06 into main Nov 17, 2023
6 checks passed
@iulico-1 iulico-1 deleted the iulico/fix-msa-passthrough-broker branch November 17, 2023 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MSAL.net is not handling dual headed accounts that share the same UPN for both an MSA and an AAD account.
3 participants