Skip to content
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

Make popup poll interval configurable #5276

Merged
merged 9 commits into from Oct 10, 2022
Merged

Conversation

hectormmg
Copy link
Member

This PR:

  • Makes poll frequency for Popup hash monitoring configurable for MSAL Browser
  • Reduces default poll interval to 30ms in order to increase Popup interaction reliability
  • Updates configuration docs

@github-actions github-actions bot added documentation Related to documentation. msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package labels Oct 4, 2022
@github-actions github-actions bot removed the msal-angular Related to @azure/msal-angular package label Oct 4, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2022

Codecov Report

Merging #5276 (28c377a) into dev (56de071) will not change coverage.
The diff coverage is 100.00%.

Flag Coverage Δ *Carryforward flag
msal-angular 96.50% <ø> (ø)
msal-browser 86.94% <100.00%> (ø)
msal-common 85.26% <ø> (ø) Carriedforward from 3f99287
msal-core 82.84% <ø> (ø) Carriedforward from 3f99287
msal-node 82.90% <ø> (ø) Carriedforward from 3f99287
msal-node-extensions 76.03% <ø> (ø) Carriedforward from 3f99287
msal-react 94.50% <ø> (ø)
node-token-validation 88.88% <ø> (ø) Carriedforward from 3f99287

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

Impacted Files Coverage Δ
lib/msal-browser/src/utils/BrowserConstants.ts 100.00% <ø> (ø)
lib/msal-browser/src/config/Configuration.ts 95.23% <100.00%> (ø)
...msal-browser/src/interaction_client/PopupClient.ts 94.22% <100.00%> (ø)
...ser/src/interaction_client/SilentAuthCodeClient.ts 80.00% <100.00%> (ø)
...owser/src/interaction_client/SilentIframeClient.ts 96.49% <100.00%> (ø)
...l-browser/src/interaction_handler/SilentHandler.ts 87.30% <100.00%> (ø)

constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, navigateFrameWait: number) {
private pollIntervalMilliseconds: number;

constructor(authCodeModule: AuthorizationCodeClient, storageImpl: BrowserCacheManager, authCodeRequest: CommonAuthorizationCodeRequest, logger: Logger, systemOptions: Required<Pick<BrowserSystemOptions, "navigateFrameWait" | "pollIntervalMilliseconds">>) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make sure this change also gets addressed in 1P

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks! Will do!

@jasonnutter jasonnutter linked an issue Oct 10, 2022 that may be closed by this pull request
@hectormmg hectormmg merged commit 0117142 into dev Oct 10, 2022
@hectormmg hectormmg deleted the polling-interval-change branch October 10, 2022 17:59
@ghost
Copy link

ghost commented Oct 10, 2022

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

Handy links:

azure-pipelines bot pushed a commit that referenced this pull request Feb 2, 2023
* Reduce default polling interval to 30ms

* Update angular v2 doc references

* Make poll interval configurable and increase default polling frequency to every 30ms to avoid issues with URL hash disappearing before MSAL can evaluate it

* Undo angular doc changes

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

Successfully merging this pull request may close these issues.

Login popup doesn't close and displays react app itself
4 participants