Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The 4 test cases in this PR demonstrate what MSAL scenarios are covered. On top of that, the AcquireTokenSilent() is also implicitly tested by each scenario.
UPDATE: The authority implementation is also adjusted to support
https://contoso.ciamlogin.com/...
, implemented in #543.This is how to obtain test configuration:
Get a test user and its test app from lab (the app is a confidential app, but you can use it as a public client by omitting its credential)Get that app's authority and scope. Note: You shall NOT hardcode the test app's client id "b8e9..." into your test code. Read it from the response of the first API above.