question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

loadFrameTimeout not doing what it is documented to in msal-browser?

See original GitHub issue

Library

  • msal@1.x.x or @azure/msal@1.x.x
  • @azure/msal-browser@2.0.2
  • @azure/msal-angular@0.x.x
  • @azure/msal-angular@1.x.x
  • @azure/msal-angularjs@1.x.x

Important: Please fill in your exact version number above, e.g. msal@1.1.3.

Framework

React

Description

Noticed this while I was reading what loadFrameTimeout does, in the documentation: https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/90e0231e749e11c200290322abdcc32b67cddfb3/lib/msal-browser/src/config/Configuration.ts#L55

But in the code https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/2c75dcfdc3af95ce942433d950ceb95de085c3da/lib/msal-browser/src/interaction_handler/SilentHandler.ts#L105, I see it is being used in a setTimeout. How I’m understanding this is that this value delays the load of the iframe. Is this expected?

Error Message

No error, just wondering if the config is doing what it says it does in the documentation

Security

  • Is this issue security related?

Regression

  • Did this behavior work before? Version:

MSAL Configuration

// Provide configuration values here.
// For Azure B2C issues, please include your policies.

Reproduction steps

// Provide relevant code snippets here.
// For Azure B2C issues, please include your policies.

Expected behavior

Browsers/Environment

  • Chrome
  • Firefox
  • Edge
  • Safari
  • IE
  • Other (Please add browser name here)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jmckennoncommented, Sep 21, 2020

@thoo1 I think I misunderstood your original question, and upon taking a second look, you’re correct that there’s a disconnect here and is actually a bug. We’re going to move this over to be fixed, thanks for the heads up!

0reactions
jasonnuttercommented, Nov 4, 2020

@thoo1 PR has been opened to restore loadFrameTimeout to how it worked in v1 and add navigateFrameWait from v1. Feedback appreciated.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoid page reloads (MSAL.js) - Microsoft Entra
Learn how to avoid page reloads when acquiring and renewing tokens silently using the Microsoft Authentication Library for JavaScript ...
Read more >
Microsoft Authentication Library for JavaScript (MSAL.js)
The MSAL library for JavaScript enables client-side JavaScript web applications, running in a web browser, to authenticate users using Azure AD work and ......
Read more >
msal-browser - BrowserAuthError: monitor_window_timeout
Specify the iframeHashTimeout key under the system config options while initializing msal. I had increased the timeout from 6s to 10s. The ...
Read more >
.setPageLoadTimeout() | TestController | Test API | API | Docs
You can also set the page load timeout when you launch tests from the command ... when the browser has loaded all the...
Read more >
Token renewal operation failed due to timeout MSAL Angular ...
In any of my code I am not doing any operations for the login procedure. Its all happening automatically when I have these...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found