知识卡片
刷新令牌延续授权但需保护
短期访问令牌到期后,客户端可用刷新令牌申请新的访问令牌,避免每次要求用户重新登录。刷新令牌本身是更长寿的敏感凭证,需安全存储并支持撤销;撤销后已有访问令牌仍可能在到期前有效。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
A refresh token is a long-lived token used by the client to request additional access tokens when the previous token expires. Refresh tokens are requested as part of the authorization request, meaning the end user is not involved in requesting further access tokens. As part of the latest security best practices, the detection of a refresh token used twice immediately revokes the active refresh token.
参考来源
- 位置:《Mastering API Architecture》第7章《API Authentication and Authorization》之《Refresh Tokens》(源文件:_epub-src/OEBPS/ch07.xhtml)
- 结论依据:原文说明刷新令牌可换取新访问令牌、撤销可阻止后续续期,同时指出短访问令牌仍存在有效窗口。
- 原始内容:A refresh token is a long-lived token used by the client to request additional access tokens when the previous token expires. Refresh tokens are requested as part of the authorization request, meaning the end user is not involved in requesting further access tokens. As part of the latest security best practices , the detection of a refresh token used twice immediately revokes the active refresh token.