gitlabber icon indicating copy to clipboard operation
gitlabber copied to clipboard

Use access token to clone repo

Open syphernl opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Currently using --method http results in getting a question for username / password. Within GitLab it is however possible to use the access token (assuming it has read_repository permissions) to clone the repo.

Describe the solution you'd like Append the token to the URL

Describe alternatives you've considered None

Additional context Add any other context or screenshots about the feature request here.

syphernl avatar Mar 09 '22 12:03 syphernl

Duplicate of #18

GitPython doesn't support this natively you can add a wrapper as described here

ezbz avatar Mar 12 '22 13:03 ezbz

In gitlab the username would be "oauth2" and the password would be the access token

NiMeDia avatar Jan 13 '23 10:01 NiMeDia