nodeSolidServer / nodeSolidServer/node-solid-server
issuer URIs with a path part don't work
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.8k
- 派生
- 308
- PR 合并指标
- 30 天内没有已合并 PR
描述
i originally opened this as https://github.com/solid/oidc-auth-manager/issues/44 but perhaps i should have started here to target the right audience.
oidc-auth-mananger seems to make an invalid assumption that all OIDC Issuers are URIs with an empty path part. if a webid has an OIDC Issuer URI with a path part (like my webid https://zenomt.zenomt.com/card.ttl#me with issuer https://zenomt.com/oidc/), it can never be matched against the id_token iss claim because the discovered issuer URI is reduced to its origin before being compared. see these lines in preferred-provider.js.
OIDC Issuers are allowed to have path parts.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 src/preferred-provider.js 第 70-73 行附近开始,这里发现的 issuer URI 在与 id_token 的 iss claim 比较之前会被缩短。验证 OpenID Connect 对 issuer 路径部分的要求,然后在匹配时保留路径。当 https://zenomt.com/oidc/ 这样的 issuer 能够与对应的 iss claim 匹配时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- authentication
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 55/100