[Registration] `invalid_redirect_uri` / `invalid_client_metadata` surface as `OIDErrorCodeOAuthOther`
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- objective-c
调研方向
从验收标准中指定的映射方法 +[OIDErrorUtilities OAuthErrorCodeFromString:] 开始,并检查现有的 OAuth 错误代码常量。添加这两个注册错误映射,并使用针对两个错误字符串的 400 注册响应编写单元测试来覆盖它们。完成意味着完成过程在 OIDOAuthRegistrationErrorDomain 中收到 OIDErrorCodeOAuthInvalidRedirectURI 或 OIDErrorCodeOAuthInvalidClientMetadata,并且单元测试通过。
由索引模型根据 Issue 内容生成。
描述
Acceptance Criteria
+[OIDErrorUtilities OAuthErrorCodeFromString:]mapsinvalid_redirect_uritoOIDErrorCodeOAuthInvalidRedirectURIandinvalid_client_metadatatoOIDErrorCodeOAuthInvalidClientMetadata.- A unit test covers both, via a 400 registration response.
Background
OIDErrorCodeOAuthInvalidRedirectURI (-12) and OIDErrorCodeOAuthInvalidClientMetadata (-13) exist in OIDErrorCodeOAuth, with doc comments pointing at OpenID Connect Dynamic Client Registration 1.0 section 3.3, but nothing ever produces them. The mapping table in OAuthErrorCodeFromString: has the ten RFC 6749 codes and stops there.
Repro steps: point performRegistrationRequest:completion: at a registration endpoint that answers 400 {"error":"invalid_redirect_uri"}, then inspect error.code in the completion.
Expected behaviour: error.code == OIDErrorCodeOAuthInvalidRedirectURI in OIDOAuthRegistrationErrorDomain. Same for invalid_client_metadata -> OIDErrorCodeOAuthInvalidClientMetadata.
Actual behaviour: error.code == OIDErrorCodeOAuthOther, so, callers can't tell the two spec'd registration errors apart from an unknown one.
Found while fixing #987.
- 主要语言
- Objective-C
- 星标
- 2k
- 派生
- 863
- 平均合并
- 6 天 11 小时
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openid/AppAuth-iOS 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 60/100
openid/AppAuth-iOS#908 ·
-
Crash (objectForKeyedSubscript: on NSArray) when the token endpoint returns a JSON array body可能已有人在做 @w-goog 于 3 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
openid/AppAuth-iOS#987 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
openid/AppAuth-iOS#962 ·
-
enhancement triage
难度 4/5 3-5 天 新手友好度 38/100
openid/AppAuth-iOS#953 ·
-
enhancement triage
难度 4/5 3-5 天 新手友好度 45/100
openid/AppAuth-iOS#948 ·
查看 openid/AppAuth-iOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
RevenueCat/purchases-ios#8171 ·
维护者通常 1 天内回复
-
bug: remote desktop never produces frames — capture helper hangs in SkyLight initDisplayState() on macOS 13 (dual-GPU)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 68/100
makecindy/cindy#8256 · 1 条评论 ·
维护者通常 1 天内回复
-
contributor: external needs review
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug ready-for-agent
难度 2/5 1-3 小时 新手友好度 74/100
callstack/agent-device#4112 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100