cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
962 stars 34 forks source link

Bitbucket authentication #95

Closed drewmoseley closed 2 years ago

drewmoseley commented 2 years ago

I'm unable to get bitbucket syncing working. With the following in my conf.yml ` bitbucket:

Does anyone know if user and username are the same thing?

Thanks Drew

cooperspencer commented 2 years ago

Regarding username and user they aren't the same. It is explained in the example configuration. user is the user that you want to clone the repositories from, username is used for the authentication to clone said repositories.

After I read your question, I had a closer look at my bitbucket implementation and realized that I could set the value for user to username if it is empty. That solves this issue

drewmoseley commented 2 years ago

Strange. It still does not work in my case. It seems that the authentication step never completes. I'm discussing it over here.

cooperspencer commented 2 years ago

did you pull the latest changes?

drewmoseley commented 2 years ago

Yes. I tried it with user set and with it clear and had the same behavior.

drewmoseley commented 2 years ago

Strange. I created a new bitbucket account and I can get it to work with that one. No idea what is different about my primary account.

cooperspencer commented 2 years ago

that's weird, but in that case I don't think it is a gickup issue.

drewmoseley commented 2 years ago

Agreed. I'll post here if I find out anything in case others have a similar issue.

cooperspencer commented 2 years ago

thank you

drewmoseley commented 2 years ago

FWIW, there is a bug in the go-bitbucket library that caused this. The fix was recently merged so when a new release makes its way into the package stream, this should start working.

armond-avanes commented 1 year ago

Is there any ETA on the next release which is going to include this fix (updated go-bitbucket library)?

cooperspencer commented 1 year ago

I would like to implement Gitbucket first and then I would push a new release. If this is urgent for you, please try the master branch, the updated module should be already in there.

cooperspencer commented 1 year ago

@armond1978 I just published a new release. Could you please try if everything works for you?

drewmoseley commented 1 year ago

FWIW, I finally got back to this and it seems to work for me. Thanks a lot.

cooperspencer commented 1 year ago

I am happy it works for you

armond-avanes commented 1 year ago

@cooperspencer Sorry for replying with delay. But I just want to confirm that the updated version is working for me. Thanks a lot for taking care of this issue.