I noticed that one can authenticate with a CI token like this:
git clone https://gitlab-ci-token:firstname.lastname@example.org/project.git
I would like to do the same but with an access token. Something like:
git clone https://gitlab-oauth-token:email@example.com/project.git
Is this possible?
More context: I am using JGit to make changes to a git repository hosted on Gitlab. But I don’t want to ask users for their user & password. I need to use an access token. I am getting the access token by making the users follow an OAuth flow.