Skip to content

[Identity] Fix device code tests#35846

Merged
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:fix-device-code-tests
Jun 3, 2024
Merged

[Identity] Fix device code tests#35846
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:fix-device-code-tests

Conversation

@pvaneck
Copy link
Copy Markdown
Member

@pvaneck pvaneck commented May 31, 2024

A recent change in MSAL made it so that the "device_authorization_endpoint" is no longer faked/populated as it's always expected to be in the discovery response (example). Our tests seemingly relied on this fallback behavior since our mock discovery response didn't return a "device_authorization_endpoint" value. This updates our mock response accordingly.

A recent change in MSAL made it so it is required that
"device_authorization_endpoint" is set in the discovery response.

This populates the value in the mock discovery response.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck pvaneck marked this pull request as ready for review May 31, 2024 18:33
@pvaneck pvaneck requested review from a team and xiangyan99 as code owners May 31, 2024 18:33
@pvaneck pvaneck merged commit f89cbd0 into Azure:main Jun 3, 2024
@pvaneck pvaneck deleted the fix-device-code-tests branch June 3, 2024 19:34
pvaneck added a commit that referenced this pull request Jun 10, 2024
A recent change in MSAL made it so it is required that
"device_authorization_endpoint" is set in the discovery response.

This populates the value in the mock discovery response.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants