javascript - 找不到可变的azure移动应用程序

标签 javascript azure authentication azure-mobile-services

在此tutorial作者:Adrian Hall 我已经到了将此代码添加到服务器的部分。他说他将其添加到 azure mobile apps sdk 的初始化中。我不知道在哪里可以找到这个并把它放在哪里。我最终将其放入我的 javascript 文件中,但这不会返回 azuremobileapps(显然)。那么我该把这段代码放在哪里呢?我对此很陌生,提前致谢。

// Configuration of the Azure Mobile Apps can be done via an object, the
// environment or an auxiliary file.  For more information, see
// http://azure.github.io/azure-mobile-apps-node/global.html#configuration
var mobileApp = azureMobileApps({
    // Explicitly enable the Azure Mobile Apps home page
    homePage: true,
    // Explicitly enable swagger support. UI support is enabled by
    // installing the swagger-ui npm module.
    swagger: true,
    // Authentication settings for custom auth
    auth: {
        audience: '04pHmxVuhYU1QTDo4lEojLo1sseRLfKG',
        issuer: 'https://shellmonger.auth0.com'
    }
});

最佳答案

我找到了。它位于 azure 门户上 wwwroot 下 app.js 的脚本中。

关于javascript - 找不到可变的azure移动应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45133511/

相关文章:

javascript - 打包一个 npm 模块,以便它可以在前端工作(例如使用 create-react-app) `You may need an appropriate loader to handle this file type`

Azure YAML 构建;在解决方案中仅构建单个项目?

azure - 抛出了 'Microsoft.WindowsAzure.StorageClient.StorageClientException' 类型的异常

c# - 如何验证 documentdb 存储过程 REST 调用

javascript - 当我使用的 TypeScript 定义文件缺少单个定义时,我该怎么办?

javascript - 为什么 Javascript TypeDArray 不工作?

javascript - 使用 rowspan 调整表的大小

azure - VS设置: "enable isolated azure active directory configuration" do?是什么意思

authentication - Azure AD : Calling web API gives error 401

git - 开启gitlab二次验证后如何使用git命令