microsoft / microsoft/azure-devops-python-api

BasicAuthentication with PAT not working for contributions client

未關閉
#361 6 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
684
分支
218
平均合併
8 天 10 小時
30 天內合併 PR
1

描述

I am getting an AzureDevOpsAuthenticationError when trying to get a contributions client. Is there any way I can access this resource using a PAT?

credentials = BasicAuthentication(' ', personal_access_token)
connection = Connection(base_url=organization_url, creds=credentials)
contributions_client = connection.clients_v6_0.get_contributions_client()

azure.devops.exceptions.AzureDevOpsAuthenticationError: The requested resource requires user authentication: https://app.vssps.visualstudio.com/_apis

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用 personal access token 透過 BasicAuthentication、Connection 和 get_contributions_client() 重現失敗。追蹤哪個資源需要使用者驗證,並將 contributions client 的驗證預期與提供的認證資訊進行比較。在確認是否支援 PAT 存取,並據此記錄或修正驗證路徑後,即可視為完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
azure, python
領域
api, authentication
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。