microsoft / microsoft/azure-devops-python-api
BasicAuthentication with PAT not working for contributions client
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
Description
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure through BasicAuthentication, Connection, and get_contributions_client() with a personal access token. Trace which resource requires user authentication and compare the contributions client’s authentication expectations with the supplied credentials. Done means establishing whether PAT access is supported and documenting or correcting the authentication path accordingly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, python
- Domain
- api, authentication
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100