BrowserAuthError: monitor_window_timeout in react-spa example application
还没有人认领这个 Issue。
评估
- 难度
- 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
- 派生
- 64
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure-Samples/ms-identity-docs-code-javascript 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 52/100
Azure-Samples/ms-identity-docs-code-javascript#175 · 1 个 reaction ·
-
难度 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
-
难度 2/5 1-3 小时 新手友好度 78/100
TheOdinProject/curriculum#31444 ·
维护者通常 1 天内回复
-
software-development-practices software-development-practices:nist-ssdf
难度 2/5 1-3 小时 新手友好度 82/100
githubnext/gh-aw-cao#15860 ·
维护者通常 1 天内回复
-
framework/gatsby help wanted kind/bug
难度 2/5 1-3 小时 新手友好度 87/100
维护者通常 2 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
PedestrianDynamics/pyFDS-Evac#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
aiko-chan-ai/DiscordBotClient#380 ·