我们使用Apigee使用client_credentials
OAuth 2授权流程来请求持有人令牌。按照spec:Apigee似乎不支持OAuth 2规范,是否有原因?
4.4.2. Access Token Request
The client makes a request to the token endpoint by adding the
following parameters using the "application/x-www-form-urlencoded"
format per Appendix B with a character encoding of UTF-8 in the HTTP
request entity-body:
grant_type
REQUIRED. Value MUST be set to "client_credentials".
如果我们打个电话但我们得到了如下的错误:
{"ErrorCode" : "invalid_request", "Error" :"Required param : grant_type"}
看来,使用Apigee送我们到grant_type
作为查询参数。
这是为什么?由于Apigee处理OAuth 2的方式,我们有Apigee的客户无法使用他们选择的语言使用OAuth库,并且很高兴知道是否存在设计问题。
另外,它似乎不支持grant_type
在帖子正文中,并使用基本身份验证发送ID和密钥。
工程很好,非常感谢! – Michael 2014-09-01 07:14:55