繁体   English   中英

从 LogicApp 使用“向 DevOps 发送 HTTP 请求”时获取身份验证错误

[英]Getting authentication Error when using "Send a HTTP Request to DevOps" from LogicApp

我正在尝试使用“向 DevOps 发送 HTTP 请求”操作自动批准来自逻辑应用程序的拉取请求。 获取以下身份验证错误。

尝试了以下选项,但没有任何效果。

  1. 创建具有完全访问权限的新 PAT 并传递给 header。
  2. 在组织策略中启用“通过 OAuth 的第三方应用程序访问”
  3. 尝试过基本,不记名身份验证

在此处输入图像描述

Error: { "status": 401, "message": "TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: abcd1234-ac34-ac34-abcd1234\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}\r\nclientRequestId: abcd1234-ac34-ac34-abcd1234", "error": { "message": "TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\r\nAzure DevOps ActivityId: abcd1234-ac34-ac34-abcd1234\r\nDetails: {\"$id\":\"1\",\"innerException\":null,\"message\":\"TF400813: The user 'aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa' is not authorized to access this resource.\",\"typeName\":\"Microsoft.TeamFoundation.Framework.Server.UnauthorizedRequestException, Microsoft.TeamFoundation.Framework.Server\",\"typeKey\":\"UnauthorizedRequestException\",\"errorCode\":0,\"eventId\":3000}" }, "source": "vsts-eus.azconn-eus-003.p.azurewebsites.net" }

在 Azure DevOps 中使用基本身份验证时,您需要确保将 PAT 编码为 base64 而没有用户名。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM