Bug: SBS interrupt redirect loses its nonce after StepUp
维护者通常 5 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php
调研方向
从StepupAssertionConsumer开始,追踪存储的原始SBS响应在StepUp之后是如何处理的;issue指出handleSramInterruptCallout()是相关调用。找到现有的组合流程场景及其SBS mock,然后为重定向nonce和SBS之后的继续执行添加断言。完成标准是保留原始nonce,并且列出的仅StepUp流程和SBS流程仍能正常工作。
由索引模型根据 Issue 内容生成。
描述
When an SP requires both StepUp and an SRAM/SBS check, SBS may return an interrupt response with a nonce. EngineBlock stores that nonce and performs StepUp first. After StepUp returns, EngineBlock redirects the browser to SBS with an empty nonce query parameter instead of the nonce SBS issued. This may prevent SBS from resuming the interrupt flow.
In StepupAssertionConsumer , EngineBlock detects the stored SRAM step but passes the StepUp Gateway response to handleSramInterruptCallout() rather than the original response containing the SBS nonce.
Steps to reproduce
- Configure an SP to require StepUp and SRAM collaboration; enable eb.feature_enable_sram_interrupt .
- Configure SBS to return an interrupt response with a nonce, such as my-nonce .
- Log in through the IdP and complete StepUp.
- Inspect the browser's redirect to SBS.
Actual result
The SBS redirect contains an empty nonce, such as ?nonce= .
Expected result
The redirect contains the nonce from SBS's original interrupt response, such as ?nonce=my-nonce . The user can then complete the SBS step and continue through consent to the SP.
Acceptance criteria
• The SBS redirect after StepUp carries the original SBS nonce.
• A regression test asserts the nonce in the redirect and verifies the flow can continue after SBS.
• Existing StepUp-only, SBS-authorized, and SBS-interrupt-without-StepUp flows continue to work.
Technical hint: Pass the stored original response to handleSramInterruptCallout() in StepupAssertionConsumer . The existing combined-flow scenario does not assert the nonce, and its SBS mock ignores the redirect query string.
- 主要语言
- PHP
- 星标
- 17
- 派生
- 25
- 平均合并
- 3 天 16 小时
- 30 天内合并 PR
- 7
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenConext/OpenConext-engineblock 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
OpenConext/OpenConext-engineblock#2122 · 4 条评论 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
OpenConext/OpenConext-engineblock#2040 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
OpenConext/OpenConext-engineblock#2015 ·
维护者通常 5 天内回复
-
maintenance
难度 2/5 1-3 小时 新手友好度 72/100
OpenConext/OpenConext-engineblock#1960 · 2 条评论 ·
维护者通常 5 天内回复
-
needs-discussion needs-input
难度 5/5 一周以上 新手友好度 18/100
OpenConext/OpenConext-engineblock#2142 ·
维护者通常 5 天内回复
查看 OpenConext/OpenConext-engineblock 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
-
0. Needs triage 36-feedback bug
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
area:ci priority:low type:chore
难度 2/5 1-3 小时 新手友好度 78/100
crazy-goat/php-fpm-ng#1021 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
ProfessionalWiki/NeoWiki#1755 ·
维护者通常 1 天内回复