-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix extraQueryParameters being dropped from request (#7166)
In cases where a field included in extraQueryParameters already exists on the query string it was being deleted from the object which prevented it from being used on the next request i.e. removed on /authorize, no longer exists on /token. This caused a bug in Pairwise broker and NAA flows ultimately resulting in the server throwing an "unauthorized_client" error. This PR fixes this bug. Note: Objects in JavaScript are passed by reference which is why the original implementation caused this bug. There are other places in the code where we similarly edit an object that has been passed in. A separate work item has been created to address those other instances in a separate PR & turn on a lint rule to prevent this pattern in the future.
- Loading branch information
Showing
4 changed files
with
86 additions
and
32 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
change/@azure-msal-common-1e1b6efa-031c-4454-8c25-e62ef4ef523e.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "patch", | ||
"comment": "Fix extraQueryParameters being dropped from request", | ||
"packageName": "@azure/msal-common", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters