Skip to content

Uses PAT on shared provider library requests from Azure#4272

Merged
ramin-t merged 3 commits intomainfrom
bugs/azure-request-errors
Apr 30, 2025
Merged

Uses PAT on shared provider library requests from Azure#4272
ramin-t merged 3 commits intomainfrom
bugs/azure-request-errors

Conversation

@ramin-t
Copy link
Contributor

@ramin-t ramin-t commented Apr 30, 2025

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.

@ramin-t
Copy link
Contributor Author

ramin-t commented Apr 30, 2025

@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

@ramin-t
Copy link
Contributor Author

ramin-t commented Apr 30, 2025

Going to merge this and test in pre-release.

@ramin-t ramin-t merged commit 89a6d8b into main Apr 30, 2025
3 checks passed
@ramin-t ramin-t 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