You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Logic App HTTP连接器调用Graph API时AD OAuth令牌获取失败

使用Logic App HTTP连接器调用Graph API时的OAuth令牌获取错误问题

我尝试使用Microsoft Logic App的HTTP连接器调用Microsoft Graph API,但调用失败并报错:

"BadGateway. Http request failed as there is an error getting AD OAuth token: 'Failed to extract error details from response content ''.'."

已完成的排查与尝试

  • 通过Postman成功运行该调用,并用jwt.ms解密Postman生成的令牌,验证了以下关键值:
    "aud": "https://graph.microsoft.com",
    "iss": "https://sts.windows.net/{{tenantId}}/",
    
  • 查阅相关资料并尝试对应方案:
    • 针对受众参数错误的案例,尝试过多个受众值,但测试均未成功,不确定正确配置值
    • 排除了共享密钥认证的方案,因为项目要求必须使用OAuth认证
    • 参考Azure Logic Apps的OAuth认证相关文档,尝试过以下几种authority配置:
      "authority": "https://sts.windows.net/{{tenantId}}/"
      "authority": "HTTPS://login.microsoftonline.com/{{tenantId}}/"
      "authority": "HTTPS://login.microsoftonline.com/{{tenantId}}/oauth2/v2.0/authorize"
      
  • 已准备相关截图辅助排查:
    • Logic App中HTTP连接器的界面截图
    • 连接器运行时的状态截图
    • HTTP连接器生成的原始HTML内容截图

希望有人能指出问题所在。

内容的提问来源于stack exchange,提问作者TULIP

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.25 00:39:17