Skip to content

Don't reassign request object properties #4563

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

Merged
merged 4 commits into from
Mar 3, 2022
Merged

Don't reassign request object properties #4563

merged 4 commits into from
Mar 3, 2022

Conversation

tnorling
Copy link
Collaborator

@tnorling tnorling commented Mar 1, 2022

initializeBaseRequest currently reassigns some properties of the original request causing issues with thumbprinting for concurrent requests. This PR fixes this behavior.

@github-actions github-actions bot added the msal-browser Related to msal-browser package label Mar 1, 2022
@codecov-commenter
Copy link

codecov-commenter commented Mar 1, 2022

Codecov Report

Merging #4563 (4498dd3) into dev (98858dd) will decrease coverage by 0.37%.
The diff coverage is 100.00%.

Flag Coverage Δ *Carryforward flag
msal-angular 96.39% <ø> (ø)
msal-browser 87.81% <100.00%> (ø)
msal-common 85.08% <ø> (ø) Carriedforward from 7fde367
msal-core 82.67% <ø> (ø) Carriedforward from 7fde367
msal-node 82.25% <ø> (ø) Carriedforward from 7fde367
msal-node-extensions 76.03% <ø> (?) Carriedforward from 7fde367
msal-react 92.46% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...er/src/interaction_client/BaseInteractionClient.ts 98.03% <100.00%> (ø)
...ions/msal-node-extensions/src/utils/Environment.ts 42.59% <0.00%> (ø)
...e-extensions/src/persistence/PersistenceCreator.ts 91.17% <0.00%> (ø)
extensions/msal-node-extensions/src/index.ts 100.00% <0.00%> (ø)
...extensions/src/persistence/LibSecretPersistence.ts 88.23% <0.00%> (ø)
...node-extensions/src/persistence/BasePersistence.ts 66.66% <0.00%> (ø)
...-extensions/src/persistence/DataProtectionScope.ts 100.00% <0.00%> (ø)
...ions/msal-node-extensions/src/dpapi-addon/Dpapi.ts 100.00% <0.00%> (ø)
...msal-node-extensions/src/lock/CrossPlatformLock.ts 81.08% <0.00%> (ø)
...tensions/src/persistence/PersistenceCachePlugin.ts 75.67% <0.00%> (ø)
... and 5 more

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@tnorling tnorling merged commit 8fba82a into dev Mar 3, 2022
@tnorling tnorling deleted the fix-base-request branch March 3, 2022 18:35
azure-pipelines bot pushed a commit that referenced this pull request Mar 3, 2022
* don't update request object

* Change files

* await all 3 promises
@ghost
Copy link

ghost commented Mar 7, 2022

🎉@azure/msal-browser@v2.22.1 has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants