My App Password works for Git when I have the URL in the form
git clone https://{username}:{app_password}/....
Now that we need to transition to API Tokens, I created one (didn't specify the scope) and tried to use it using all the methods documented and I always get an authentication error.
git clone https://{username}:{token}/....
git clone https://x-bitbucket-api-token-auth:{token}/....
git clone https://x-token-auth:{token}/....
git clone -c http.extraHeader='Authorization: Bearer ...'
I made sure to URL encode the token, still it is failing to authenticate.
Is this even working at this time?
Thanks
Matt
Hi @Matthew Soh
You'll need to create the API token and specify the scope - this is mentioned in our deprecation documentation:
Atlassian Account settings > Security tab > Create and manage API Tokens
read:repository:bitbucket and write:repository:bitbucket - clone only would just be read
git clone https://username:APIToken@bitbucket.org/workspaceID/reposlug.git
Please let me know how this goes.
Cheers!
Ben (Bitbucket Cloud Support)
Thanks, Ben - this works!
I remember trying it before with a scoped token, but I must have chosen the wrong permissions. When that failed, I assumed that omitting the scope would grant all permissions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The username x-bitbucket-api-token-auth works as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.