Authenticate using access token?


I want to use an OAuth access token to perform actions which are not available with the official API.

I noticed that one can authenticate with a CI token like this:
git clone

I would like to do the same but with an access token. Something like:
git clone

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.


Answering my own question:

It’s possible to use an access token like this:
git clone