Skip to content

[Identity] Handle MSAL string response scenario - #40281

Merged
Paul Van Eck (pvaneck) merged 1 commit into
Azure:mainfrom
pvaneck:identity-msal-error-string
Apr 25, 2025
Merged

Paul Van Eck (pvaneck) merged 1 commit into
Azure:mainfrom
pvaneck:identity-msal-error-string

Conversation

@pvaneck

Copy link
Copy Markdown
Member

Closes: #40240

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR aims to improve error handling in the MSAL client when the response content is a string rather than a dictionary.

  • Added a new test to verify that MSAL string error responses are properly handled.
  • Updated the error storage logic in the MSAL client to account for non-dictionary content.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
sdk/identity/azure-identity/tests/test_msal_client.py Adds a test to validate string error response handling
sdk/identity/azure-identity/azure/identity/_internal/msal_client.py Adjusts error extraction logic to handle string responses

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
Paul Van Eck (pvaneck) merged commit fe0ab0f into Azure:main Apr 25, 2025
@pvaneck
Paul Van Eck (pvaneck) deleted the identity-msal-error-string branch April 25, 2025 01:11
Rena (cRui861) pushed a commit that referenced this pull request May 14, 2025
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.

[Identity] Errors handling non-dictionary content type in proxy scenarios

4 participants