我正在尝试针对我在 Azure Active Directory 中定义的应用服务进行身份验证。访问它时,我首先获取访问令牌并继续 OAuth 过程的其余部分。
但是,问题是我只能在通过 Postman 发布请求时获取令牌。当我尝试使用流中的 HTTP 操作使用相同的数据调用相同的 URL 时,它会失败:
{
"error": "invalid_client",
"error_description": "AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.\r\nTrace ID: 67250fbf-ad20-47f1-b3a3-dbce1e813600\r\nCorrelation ID: f9eaaa13-cee3-4f5c-a96a-6846c4392dd9\r\nTimestamp: 2018-01-17 12:21:51Z",
"error_codes": [
70002,
50012
],
"timestamp": "2018-01-17 12:21:51Z",
"trace_id": "67250fbf-ad20-47f1-b3a3-dbce1e813600",
"correlation_id": "f9eaaa13-cee3-4f5c-a96a-6846c4392dd9"
}
这是它在 Flow 中的设置方式:
在 Postman 中执行时,它工作得很好:
我无法弄清楚为什么在流中运行请求时这不起作用。我在 HTTP 操作卡配置中遗漏了什么吗?
亲切的问候,彼得