我正在尝试使用 Postman 通过 Microsoft Graph API“获取用户访问令牌”;但是,我的组织最近启用了多因素身份验证,并且此调用现在失败,并指出:
\n\n"error": "invalid_grant",
"error_description": "AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access...
\xc2\xa0\n使用 Postman 的 MS Graph API 的 Microsoft 文档写得很好,但缺少明确的说明如何将第二个因素传递给请求。
\n\n该错误指向https://login.microsoftonline.com/error?code=50076,但这只是提供了相同的信息。
\n\n我有 MS 身份验证器应用程序,它为我提供了这个关键/第二个因素;但是,我不知道如何将其添加到正文/标题中。 我正在尝试查找用于传递附加安全令牌的特定密钥名称(我尝试过诸如“token”、“pcToken”、“key”等)
\n\n。
\n\n\n\n\npostman azure-ad-graph-api multi-factor-authentication microsoft-graph-api