KB0026 - Authentication failure when connecting to BitBucket using a HTTP Access Token

KB0026 - Authentication failure when connecting to BitBucket using a HTTP Access Token

Applicability

This article applies to any version of PowerShell Universal with git sync enabled. 

Symptom

When attempting to synchronize with a BitBucket git repository using a HTTP Access Token generated from the BitBucket repository, it fails to connect with an authentication error. 

Cause

Tokens generated from the repository settings do not have the proper privileges to clone using PowerShell Universal's git integration. 

Resolution

To resolve this issue, generate a token from your profile instead of the repository. You can learn more by following the instructions here: https://confluence.atlassian.com/bitbucketserver/personal-access-tokens-939515499.html#HTTPaccesstokens-CreateHTTPaccesstokens