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
    • Related Articles

    • KB0079 - gRPC Issues when using PowerShell Universal v5 Cmdlets

      Scope Users running PowerShell Universal v5 or later that are attempting to call cmdlets that interact with PowerShell Universal management APIs. Problem Various errors from PowerShell Universal cmdlets referring to gRPC. Root Cause The use of gRPC, ...
    • IIS: HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

      Applies to: PowerShell Universal 1.4 or later When configuring PowerShell Universal to run under IIS, you may be presented with an error that states ANCM Out-Of-Process Startup Failure. This error can be presented for a variety of reasons but the ...
    • KB0074 - Connecting to PSU API w/Windows Auth

      Scope This article applies only to PSU environments where Windows Authentication[1] is enabled and known to be working[2]. Problem You are not able to interact with the PSU instance using the Invoke-WebRequest PowerShell cmdlet even though logging in ...
    • OpenID Connect does not work with HTTP

      Version: Any Problem: When configuring PowerShell Universal OpenID Connect authentication, the server will return a 500 error when attempting to authenticate.  Root Cause Chrome 80 introduced new settings that require cross-site cookies to be secure. ...
    • KB0067 - Granting an app token with a username and password on the command line

      Scope This applies to users wishing to issue app tokens from the command line in PowerShell Universal using a username and password. Process Method 1 - Form Authentication You can use the PowerShell Universal form authentication endpoint to produce a ...