知识卡片
接口密钥只识别应用
API key 可识别调用应用或项目,却不能证明该应用代表哪个最终用户,也不能自动证明用户授权。第三方系统即使持有有效密钥,仍需独立机制取得用户同意和受限权限;不要为了补足用户身份而索取用户密码。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Just because the CFP system is using an API key and can be identified does not mean that this third-party system should be able to assert who the end user is or who they are acting on behalf of. This puts trust of the entire system in the hands of the third party.
参考来源
- 位置:《Mastering API Architecture》第7章《API Authentication and Authorization》之《Why You Shouldn’t Mix Keys and Users》(源文件:_epub-src/OEBPS/ch07.xhtml)
- 结论依据:原文以 CFP 第三方系统说明 API key 只能识别系统,不能让系统自行声称代表用户;转交用户名密码同样不合适。
- 原始内容:Just because the CFP system is using an API key and can be identified does not mean that this third-party system should be able to assert who the end user is or who they are acting on behalf of. This puts trust of the entire system in the hands of the third party.