BrowserAuthError: monitor_window_timeout in react-spa example application
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript, react
調査の方向性
react-spa のサンプルアプリケーションから始め、refresh token の有効期限が切れた後のフローを再現します。サインインし、待機してから「Request Token」ボタンを使用します。ブラウザーログで BrowserAuthError monitor_window_timeout と InteractionRequiredAuthError の結果を確認します。文書化された期待される token または interaction-required の結果が一貫して発生すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Please provide us with the following information:
This issue is for a: (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
When the project (react-spa) is ready to be debugged, start the application (e.g. debug in Visual Studio 2022). And as the application has started up then:
- Sign in as a user
- Wait until the refresh token expires.
- Use the 'Request Token'- button to call Microsoft Graph.
- As the result the problem may or may not occur.
Any log messages given by the failure
BrowserAuthError.ts:351 Uncaught (in promise) BrowserAuthError: monitor_window_timeout: Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors
at createBrowserAuthError (BrowserAuthError.ts:351:1)
at SilentHandler.ts:92:1
createBrowserAuthError @ BrowserAuthError.ts:351
Expected/desired behavior
After http 400 error a new token would be successfully be fetched in iFrame.
Or this particular application may work correctly if it returns:
:3000/#error=interaction_required&error_description=Session+information+is+not+sufficient+for+single-sign-on.
(InteractionRequiredAuthError: interaction_required: Session information is not sufficient for single-sign-on.)
OS and Version?
Windows 10,
Versions
Mention any other details that might be useful
The 'BrowserAuthError: monitor_window_timeout' does not necessarily occur every time the refresh token has expired. It may also work as expected.
I did save a log when the case was present: the first time it was the monitor_window_timeout that occurred. The second time the refresh token probably was correctly fetched as InteractionRequiredAuthError occurred. I tested this application due to I have used the similar approach to call APIs in my own React project. monitor_window_timeout is often occurring and I tried to run the most simple application with this approach to see is the problem is present.
Thanks! We'll be in touch soon.
- 主要言語
- JavaScript
- スター
- 63
- フォーク
- 63
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure-Samples/ms-identity-docs-code-javascript のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 52/100
Azure-Samples/ms-identity-docs-code-javascript#175 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
Azure-Samples/ms-identity-docs-code-javascript の issue をすべて見る
似ている issue
-
curation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
amponce/archive-movie-browser#186 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
clerk/javascript#9852 ·
-
bug p1 tools
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HarperFast/skills#96 ·
-
factory-active factory-automatic task-bug-reproduction-cannot-reproduce task-identify-harness-labels-done task-identify-issue-type-done
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100