node.js - 如何使用 Azure AD 实现身份验证和授权 Nodejs Azure Functions 应用程序

标签 node.js azure authentication authorization

我想使用 Azure AD 实现身份验证和授权 Nodejs Azure Functions 服务。我正在关注这个article 。我得到了 sample code从这篇文章。看起来他们已经使用了expressjs、passportjs,但我只需要Azure函数应用程序。

示例代码会很有帮助。请帮我。谢谢。

最佳答案

  • 在 Function 应用中的身份验证下,单击添加身份提供商 enter image description here

  • 现在选择Microsoft作为身份提供商

enter image description here

  • 然后选择创建新应用注册当前租户-单租户,然后点击添加 enter image description here

  • 现在您可以从最近创建的应用程序注册中获取 token ,然后我们可以使用它来验证我们的nodejs函数。

enter image description here

关于node.js - 如何使用 Azure AD 实现身份验证和授权 Nodejs Azure Functions 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/74456890/

相关文章:

javascript - Node azure blobService.generateSharedAccessSignature() 返回错误的 token

php - fatal error : Class 'XSLTProcessor' not found - but is installed

javascript - 为什么我的 XMLHttpRequest 被中止?

php - 访问 Microsoft Dynamics CRM 2016 REST WEB API

node.js - npm install 显示一些错误 EACCESS

node.js - 如何在 Mongoose 模式中定义触发器

node.js - 在 marklogic node.js 上获取新版本 ID 使用 versionId 写入

javascript - Node.js 服务器和 .html 文件

html - 需要帮助获取 Azure 媒体服务编码视频以在 HTML5/DASH 中播放

asp.net - 使用 IdentityServer4 进行无限循环重定向