Closed lczerniawski closed 10 months ago
1 files ±0 60 suites ±0 36m 40s :stopwatch: ±0s 181 tests ±0 171 :heavy_check_mark: ±0 0 :zzz: ±0 10 :x: ±0
For more details on these failures, see this check.
Results for commit 2f4aacd5. ± Comparison against base commit 23928f21.
Add PAT as an Authentication Method in Azure DevOps Pull Request Library
Description
This pull request introduces the ability to use a Personal Access Token (PAT) (issue #81) as an alternative authentication method in the Azure DevOps Pull Request extension for Visual Studio Code. The PAT allows users to authenticate without relying on Microsoft login credentials and eliminates the need for manual login prompts.
Changes
1.
README.md
Added configuration details for
azdoPullRequests.patToken
in the extension's settings.2. package.json
Added configuration details for azdoPullRequests.patToken in the extension's settings.
3. src/azdo/credentials.ts
Modified the Azdo constructor to accept an additional parameter isPatTokenAuth and adjusted authentication logic accordingly.
Updated the CredentialStore to check for the presence of a PAT Token and use it for authentication if available.
4. I also removed one unused file that contained configuration left over from GitHub fork.
Feel free to review and merge this pull request. If you have any questions or concerns, please don't hesitate to reach out.
Thank you, Łukasz