小编I S*_*I S的帖子

OAuth2 中令牌请求的内容类型

https://tools.ietf.org/html/rfc6749#section-4.1.1感到好奇

看一看:

客户端通过 使用“application/x-www-form-urlencoded”格式
向授权端点URI的查询组件添加以下参数来构造请求URI

...服务器必须响应“application/json”。

问题是:

  1. 为什么我们要明确使用“application/x-www-form-urlencoded”?
  2. urlencoded 有什么明显的好处吗?
  3. 是什么阻止我在这里接受 urlencoded 和 json?似乎,我并没有真正以这种方式违反 RFC。

json urlencode oauth2

8
推荐指数
1
解决办法
8445
查看次数

标签 统计

json ×1

oauth2 ×1

urlencode ×1