Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to push with http token?

Nils Bentlage
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!
March 28, 2023

There's one of our Repositorys we want to make accessbile in our organization, even for co-workers without a Bitbucket-Account and/or SSH-Key. So we thought about a http-token.

I am able to clone that repo using the created http-token, but i'm unable to write (git push). I tried to achieve that by adding <user>:<token>@ .... to the remote (actually, i cloned it that way, so i just changed that afterwards for Testing)

  • The Token-Authorization-Level is set to "write repository"
  • as a Username i tried my own and also 'x-auth-token'

We're running BB 8.8 on-prem.

thx in advance.

1 answer

0 votes
Christian Glockner
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 28, 2023

Hi Nils,

If the clone works, the push should work the same way - what happens when you do try to push with a token?

Cheers

Christian

Premier Support Engineer

Atlassian

Nils Bentlage
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!
March 30, 2023

Hi Christian, thanks for your fast reply :)

from git push i get:

fatal: Authentication failed for 'https://<our-bitbucket-url>/scm/~<my-user>/<my-project>.git/'

I just tried it one more time and am able to pull & fetch, using the origin i wrote. To do that i used the http-clone-address (as suggested by the top left icon in BB) and added '<user>:<token>@' between https:// and the domain. But im unsure because of the character '~' ... it is part of the url but should not be a part of the username. is that correct?

Cheers! 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events