【发布时间】:2017-08-03 01:01:18
【问题描述】:
在获取 Forge 的初始访问令牌时遇到问题,看起来我正在按照 T 的教程进行操作,但没有运气。
https://developer.autodesk.com/en/docs/oauth/v2/reference/http/authenticate-POST/
我正在通过 Cygwin 在 Windows 上运行 curl。
curl -v 'https://developer.api.autodesk.com/authentication/v1/authenticate' -X 'POST' -H 'Content_Type: application/x-www-form-urlencoded' -d 'client_id=000000000000000000000000000000000&client_secret=0000000000000000&grant_type=client_credentials&scope=data:read'
我得到的是……
< HTTP/1.1 400 Bad Request
< Content-Type: application/json
< Date: Mon, 13 Mar 2017 03:50:00 GMT
* Server Apigee Router is not blacklisted
< Server: Apigee Router
< Content-Length: 210
< Connection: keep-alive
<
* STATE: PERFORM => DONE handle 0x600057680; line 1981 (connection #0)
* multi_done
* Curl_http_done: called premature == 0
* Connection #0 to host developer.api.autodesk.com left intact
{"developerMessage":"Requested scopes must be blank or a subset of the provided scopes.","userMessage":"","errorCode":"AUTH-004","more info":"http://developer.api.autodesk.com/documentation/v1/errors/AUTH-004"}
不知道发生了什么。我请求的范围真的错了吗?
【问题讨论】:
标签: curl oauth autodesk-forge