我正在尝试在我自己的windows机器上测试这个演示:https://github.com/Autodesk-Forge/forge-bim360-clashissue
我已经成功地启动了使用这些命令运行的模板。
npm install
set FORGE_CLIENT_ID=<<YOUR CLIENT ID FROM DEVELOPER PORTAL>>
set FORGE_CLIENT_SECRET=<<YOUR CLIENT SECRET>>
set FORGE_CALLBACK_URL=<<YOUR CALLBACK URL>>
npm run nodemon我在Forge My Apps界面中添加了一个新的应用程序。我已经为BIM 360帐户接口添加了规定。
我可以连接到我的本地主机,当我按ALLOW尝试验证并登录到autodesk帐户时,我将重定向到以下网站,并显示以下错误:
http://localhost:3000/api/forge/oauth/callback?code=TOAq...
Cannot GET /api/forge/oauth/callback我怎样才能克服这个错误?
发布于 2020-08-21 15:53:24
它看起来像是配置不匹配。您已经将回调配置为http://localhost:3000/api/forge/oauth/callback,但是根据https://github.com/Autodesk-Forge/forge-bim360-clashissue/blob/master/server/endpoints/oauth.endpoints.js#L72的说法,您的服务器实际上希望在不同的URL上进行回调:http://localhost:3000/api/forge/callback/oauth。
https://stackoverflow.com/questions/63517543
复制相似问题