【发布时间】:2021-06-14 14:22:21
【问题描述】:
我有一个使用 azure 上托管的 express 的 node-api。我使用 Azure AD 进行身份验证。当我尝试使用邮递员进行调试时,我得到这样的错误响应
"message": "IDX10511: Signature validation failed. Keys tried: '[PII is hidden]'. \nkid: '[PII is hidden]'. \nExceptions caught:\n '[PII is hidden]'.\ntoken: '[PII is hidden]'."
错误本身是我可以弄清楚的(希望如此),但我需要能够显示 PII,我该如何管理?
评论后编辑:
好的,我会尽力解释。
-
我有一个使用 msal 和 loginpopup(Authsettings) 的角度前端。
export const OAuthSettings = { appId: '*************', redirectUri: 'http://localhost:4200', authority : "https://login.microsoftonline.com/***tenant***/", scopes: [ "user.read", "openid", "profile", "mailboxsettings.read", "calendars.readwrite" ] }; -
我用我的企业帐户登录后获得访问令牌。
-
现在我想调用我的 api,它(应该)受 azure ad 保护。然后我得到错误。显然有些东西没有正确配置。只是不知道调试什么或如何调试。
【问题讨论】:
-
如何设置
scope? -
嗨,我编辑了答案。
标签: node.js azure azure-active-directory