【发布时间】:2021-12-17 00:42:07
【问题描述】:
在我们的应用程序中,我们有一个 Angular 前端应用程序,它具有用于 BIM 360 文档的 Autodesk 登录。用户登录前端后,我们从 Autodesk 检索 3 条授权代码并将其传递给 C# 后端,我们使用该代码获取 access_token 和刷新令牌。 我们正在使用它来获取授权码 -
https://developer.api.autodesk.com/authentication/v1/authorize?response_type=code&client_id={client_Id}&redirect_uri={callbakcurl}&scope=data:read
使用它从代码中获取 access_token -
https://developer.api.autodesk.com/authentication/v1/gettoken
我们收到以下错误 -
{
"developerMessage": "The authorization code/refresh token is expired or invalid/redirect_uri must have the same value as in the authorization request.",
"errorCode": "AUTH-004",
"more info": "https://forge.autodesk.com/en/docs/oauth/v2/developers_guide/error_handling/"
}
我们确保我们的redirect_url 正确/相同以获取授权码并获取access_token。 谁能帮我看看这个授权码的有效期是多久?
【问题讨论】:
-
你的
redirect_urlurl 编码了吗?
标签: autodesk-forge autodesk autodesk-model-derivative autodesk-bim360 autodesk-data-management