microsoft / microsoft/azure-devops-python-api

BasicAuthentication with PAT not working for contributions client

Open
#361 6 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.