Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompt for password when use api token #63

Closed
Lolek1978 opened this issue Apr 15, 2020 · 7 comments
Closed

Prompt for password when use api token #63

Lolek1978 opened this issue Apr 15, 2020 · 7 comments

Comments

@Lolek1978
Copy link

Describe the bug
When cloning from GitLab over https, I'm prompted to enter a password since the token is recognized as username.

Screenshots
The log is:

+-+-+-+-+ +-+-+ +-+-+-+-+-+
|T|I|M|E| |T|O| |G|H|O|R|G|
+-+-+-+-+ +-+-+ +-+-+-+-+-+


  • SCM : gitlab
  • Type : org
  • Protocol : https
  • Branch : master
  • Location : /home/osboxes/Desktop/
  • Concurrency : 25
  • Base URL : https://git.pl/api/v4
  • Backup : true

118 repos found in 316


7 repos found in my-org

Password for 'https://token@git.pl':

Prompt for password multiple times.

Desktop (please complete the following information):

OS: ubuntu
osboxes@mail:~/d00b$ brew install gabrie30/utils/ghorg
Warning: gabrie30/utils/ghorg 1.2.0 is already installed and up-to-date
To reinstall 1.2.0, run brew reinstall ghorg

I don't know how to install the latest version of ghorg :(.

Additional context
The used GitLab account is configured with 2FA.

@gabrie30
Copy link
Owner

have you tried cloning via ssh? have you tried using the --token flag? have you tried adding your token to your ghorg.conf? what command are you running?

@gabrie30
Copy link
Owner

follow the go instructions for the most recent version, make sure you delete the brew binary first

@Lolek1978
Copy link
Author

Lolek1978 commented Apr 16, 2020

have you tried cloning via ssh?

I dont have acces to gitlab via ssh :(.

have you tried using the --token flag?

Yes. Currently i ran with token flag.

have you tried adding your token to your ghorg.conf? what command are you running?

I installed ghorg with :


osboxes@mail:~$ brew install gabrie30/utils/ghorg
==> Installing ghorg from gabrie30/utils
==> Downloading https://github.com/gabrie30/ghorg/archive/1.2.0.tar.gz
...
=> https://raw.githubusercontent.com/gabrie30/ghorg/master/sample-conf.yaml
==> ***************************
==>
🍺 /home/osboxes/.linuxbrew/Cellar/ghorg/1.2.0: 3 files, 16.5MB, built in 25 seconds


and run with
ghorg clone 316 --base-url=https://git.pl/api/v4 -s gitlab -t --namespace=apigee/gateway

I tried to also add to ghorg.conf but i have still issue.

I read in changelog that you have 1.2.2 version but at releeases site i still see 1.2.0 - maybe thats the issue?

btw. your soft is great :)

@gabrie30
Copy link
Owner

btw. your soft is great :)

Thank you so much!

I think you are correct and will cut a new release tonight.

@gabrie30
Copy link
Owner

@Lolek1978 1.2.2 should now be available through brew, could you try the new version and let me know if it fixes your issue?

@Lolek1978
Copy link
Author

Hey, I checked again.

I uninstalled and installed version 1.2.2.

Now everything works :).

Thanks again for a great job :-)

@agathebower
Copy link

I had ghorg load the repos to the same dir, where the ghorg-binary was sitting... using another directory did the trick!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants