Skip to content

Azure calls can fail or return incorrect info for some accounts #4271

@ramin-t

Description

@ramin-t

Description

We use our token with bearer auth on most of our calls to shared provider library for Azure. This can cause issues. For example, with my API tokens (from gkdev), asking for Azure orgs without using the isPAT: true option and without converting my token to a PAT, results in my projects being returned instead of my orgs. Other calls result in 401s from Azure.

GKDev converts the token to a PAT and uses isPAT: true on all Azure calls except for getCurrentUser, which doesn't support using a PAT.

We should match this as long as it doesn't break any calls for existing tokens that worked before using bearer auth.

GitLens Version

17.0.3

VS Code Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, etc

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions