【问题标题】:Auth0 Allowed Web Origins for app hosted in AzureAuth0 允许在 Azure 中托管的应用的 Web 源
【发布时间】:2019-07-01 13:46:39
【问题描述】:

我有一个使用 Auth0 为我的 IDP 开发的 SPA 应用程序。在本地开发时,我将 Auth0 Allowed Web Origins 设置设置为 http://localhost:8080 并且一切正常。

现在我已将我的应用程序作为 Web 应用程序部署到 Azure - 所以我的应用程序的地址如下:myapp.azurewebsites.net。我还包含了一个自定义域,以便我可以像这样访问我的应用程序:myapp.mydomain.com

我进入我的 Auth0 仪表板并更新了允许的 Web 来源以包括 https://myapp.azurewebsites.nethttps://myapp.mydomain.com

但是,我无法再让 Auth0 进行身份验证。当我在 Auth0 调用 auth 端点时,我收到一个回调到我的 signin-oidc 端点并出现错误

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

我的猜测是我没有得到正确的允许的 Web 来源。我该怎么做才能让它再次工作?

【问题讨论】:

    标签: auth0 azure-webapps


    【解决方案1】:

    你看错了方向(就像我一样:))。解决方案是将 web.config 添加到您的项目中。之前在这里讨论了很多时间。

    Angular2 - page refresh 404ing when hosted in Azure

    Error : The resource you are looking for has been removed, had its name changed, or is temporarily unavailable

    【讨论】:

      猜你喜欢
      • 2019-07-21
      • 2022-11-08
      • 1970-01-01
      • 1970-01-01
      • 2019-09-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多