知识卡片
资源服务校验访问令牌
在 OAuth 授权流程中,客户端从授权服务取得访问令牌,再持令牌向资源服务请求资源。资源服务要验证令牌并执行本地授权;它不应仅因为客户端呈交了某个令牌就返回全部资源。授权服务和资源服务的职责要清楚分开。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
The client will ask for an access token from the authorization server for the authorization it has been granted. The authorization server will issue an access token if the client has been authorized by the resource owner. The client makes a request for the resource to the resource server, which in our case is the API. The request will send the access token as part of the request.
参考来源
- 位置:《Mastering API Architecture》第7章《API Authentication and Authorization》之《Terminology and Mechanisms of OAuth2 Grants》(源文件:_epub-src/OEBPS/ch07.xhtml)
- 结论依据:原文按资源拥有者同意、授权服务发令牌、客户端携令牌请求和资源服务校验令牌的次序描述抽象流程。
- 原始内容:The client will ask for an access token from the authorization server for the authorization it has been granted. The authorization server will issue an access token if the client has been authorized by the resource owner. The client makes a request for the resource to the resource server, which in our case is the API. The request will send the access token as part of the request.