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

Broker refactoring, bugfix and test cases #740

Merged
merged 2 commits into from
Sep 5, 2024
Merged

Broker refactoring, bugfix and test cases #740

merged 2 commits into from
Sep 5, 2024

Conversation

rayluo
Copy link
Collaborator

@rayluo rayluo commented Sep 4, 2024

There is a recent offline discussion on when MSAL shall automatically be fallback to non-broker code path, even if the app opts in to use broker. For example, ADFS and B2C scenarios are considered unsupported by broker (WAM), but ideally MSAL shall not require app developers to opt in to broker conditionally, therefore, MSAL's DevEx (developer experience) is expected to automatically fall back to non-broker code path when appropriate.

MSAL Python did not previously have enough test cases for this, and there was even some discrepancy between the intention above and the actual behavior. This PR adds 6 test cases to inequivalently demonstrate the behaviors. Reviewers can focus on the test cases. There is also an open question on whether the instance_discovery=False scenario shall bypass broker.

@rayluo rayluo requested a review from a team as a code owner September 4, 2024 06:43
@rayluo rayluo marked this pull request as draft September 4, 2024 07:07
@rayluo rayluo marked this pull request as ready for review September 4, 2024 08:36
@rayluo rayluo merged commit 85c93f8 into dev Sep 5, 2024
12 checks passed
@rayluo rayluo deleted the broker-refactor branch September 5, 2024 19:12
@rayluo rayluo mentioned this pull request Sep 5, 2024
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.

1 participant