Skip to content

Conversation

@axosoft-ramint
Copy link
Contributor

Fixes #4271

Forces the use of a PAT (and converts the token to PAT) on almost all shared library calls from Azure, except for getCurrentUser which does not support it.

Note that we may need to update local queries as well using the same logic.

@axosoft-ramint
Copy link
Contributor Author

@sergeibbb Since your integration currently works without these changes, please verify that they do not break any of the existing Azure DevOps functionality. You will probably need to clear your stored Azure account, organizations, projects, etc. to test it properly.

Copy link
Member

@eamodio eamodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a commit to avoid btoa and uses our base64 function

@sergeibbb
Copy link
Member

@axosoft-ramint

ok. I'll test it tomorrow

@axosoft-ramint
Copy link
Contributor Author

Going to merge this and test in pre-release.

@axosoft-ramint axosoft-ramint merged commit 89a6d8b into main Apr 30, 2025
3 checks passed
@axosoft-ramint axosoft-ramint deleted the bugs/azure-request-errors branch April 30, 2025 20:39
@sergeibbb
Copy link
Member

@axosoft-ramint

I confirm that on my old Azure integration it keeps receiving my organizations with the new code. I've tested retrieving data for Launchpad, get-pr-for-commit, get-account-for-commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Azure calls can fail or return incorrect info for some accounts

3 participants