知识卡片
身份令牌不能充当访问令牌
OIDC 的 ID token 用于客户端验证用户身份,access token 用于调用受保护 API。API 不应接受 ID token 作为访问凭据;验证时还须确认令牌的签发者和预期受众,不能仅凭签名有效就放行。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
原书出处
参考来源
- 位置:《Microservice APIs》第 11 章《API authorization and authentication》(源文件:_epub-src/OEBPS/Text/11.htm)
- 结论依据:原书区分两种令牌用途;其“ID token 的 audience 是授权服务器”与 OIDC Core 规定的客户端 ID 不符,卡片未采纳。https://openid.net/specs/openid-connect-core-1_0.html
- 原始内容:You use ID tokens only to verify the user identity, and never to determine whether a user has access to an API. API access is validated with access tokens.