Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't clone via vscode due to Authentication failed

Iddo Goren
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2023

Hi all,

 

I have installed VSCode on my mac, trying to clone a project.

 

I have created an access token, with all the permissions turned on.

(Repository Settings->Access Tokens)

 

When I click Clone in VSCode, it asks for the URL, I enter it.

When it asks for the password, I enter the access token provided by bit bucket.

 

I always get Authentication failed.

 

Is there anything more I need to do?

 

Thanks.

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 26, 2023

Hi Iddo and welcome to the community!

What URL are you using for cloning the repo?

When using a Repository Access Token, you need to use the following URL:

https://x-token-auth@bitbucket.org/workspace-id/repository.git

where workspace-id and repository replace with the values of the workspace-id where this repo belongs and the repo slug.

Documentation for reference: https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/

Using a URL like https://username@bitbucket.org/workspace-id/repository.git or https://bitbucket.org/workspace-id/repository.git is not going to work with the Repository Access Token.

Are you able to clone the repo this way?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events