【发布时间】:2019-03-21 23:28:13
【问题描述】:
我目前正在尝试完成这个基于Getting a 3-Legged Token with Authorization Code Grant的分步教程
这是我的 cURL 代码:
curl -v "https://developer.api.autodesk.com/authentication/v1/gettoken"
-X POST
-H "Content-Type:application/x-www-form-urlencoded"
-d "client_id=****&
client_secret=****&
grant_type=authorization_code&
code=1O4F-z9gXRtGlBymcGoD3bV3Ws2cqqjeN78PpgGn&
redirect_uri=http://localhost:3000/api/forge/callback/oauth"
这是我遇到的错误:
{"developerMessage":"The authorization code/refresh token is expired or
invalid/redirect_uri must have the same value as in the authorization
request.","userMessage":"","errorCode":"AUTH-004","more
info":"http://developer.api.autodesk.com/documentation/v1/errors/AUTH-004"}*
Connection #0 to host developer.api.autodesk.com left intact
注意:
- 我已经仔细检查了 URI 是否与我在 forge 应用程序上的回调 URL 相同。
- cURL 代码上的间距只是出于视觉原因,这不是我在命令行中运行的方式。
【问题讨论】:
标签: autodesk-forge autodesk autodesk-model-derivative autodesk-data-management