【发布时间】:2021-12-13 10:06:04
【问题描述】:
我正在编写一个 OAuth2 提供程序,我正在尝试根据此处的规范生成授权代码。
https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.2
代码 必需的。生成的授权码 授权服务器。授权码必须过期 发布后不久,以减轻泄漏的风险。一种 10 分钟的最大授权代码生命周期是 推荐的。客户端不得使用授权码
Hardt 标准跟踪 [页面 26]
RFC 6749 OAuth 2.0 十月 2012
more than once. If an authorization code is used more than once, the authorization server MUST deny the request and SHOULD revoke (when possible) all tokens previously issued based on that authorization code. The authorization code is bound to the client identifier and redirection URI.
但是我应该使用什么编码或解码协议呢?提供者是否可以免费决定?
【问题讨论】:
标签: rest oauth-2.0 jwt authorization