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.
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.