【问题标题】:NodeJS Forge viewer error on Google App EngineGoogle App Engine 上的 NodeJS Forge 查看器错误
【发布时间】:2019-03-14 03:26:46
【问题描述】:

我已根据查看 BIM 360 和 Fusion 模型教程部署了我的 Forge 查看器应用,但在 Google App Engine 上进行身份验证时遇到问题。

将我的回调 URL 设置为 https://forgeviewer-218710.appspot.com/api/forge/oauth/token,autentication 不起作用。

这是因为我需要在 App Engine 用于部署的 app.yaml 文件中设置我的 ID、密码和回调 URL 吗?还是我偏离了轨道?

【问题讨论】:

    标签: google-app-engine autodesk-forge


    【解决方案1】:

    我尝试运行你的应用,但得到了Error : 400 - Invalid redirect_uri,这意味着开发者门户上的回调 URL 与你在应用中指定的不同。

    在教程的Create an app 部分,我们使用http://localhost:3000/api/forge/callback/oauth,但是在创建将在实时应用中使用的 Forge 应用时,您应该使用实时版本,在本例中为 https://forgeviewer-218710.appspot.com/api/forge/callback/oauth(其中与您在问题中指定的不同,因此请调整)。

    总而言之,回调 url必须 匹配 Forge 应用注册和您的实时应用(假设您有 Nodejs,在 FORGE_CALLBACK_URL 环境变量上)。抱歉,我没有部署到 Google App Engine 的经验。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-03-12
      • 1970-01-01
      • 2018-09-26
      • 1970-01-01
      • 1970-01-01
      • 2015-12-22
      • 2021-10-02
      • 2017-01-11
      相关资源
      最近更新 更多