I've followed all the steps from 1Password's documentation on setting up authentication with glab (GitLab CLI). Authentication works with commands like glab repo list
, returning a list of repositories from my company's self-hosted GitLab server.
My problem is when I attempt to clone a repository over HTTPS from the server, it asks for login instead of using the personal access token I've saved in 1Password.
A disclaimer, we have decided to not setup SSH authentication, but rather use HTTPS via Personal Access Token exclusively.
It's easy to get around this problem by running glab auth login
and providing the personal access token. However, this would mean the access token will be saved to ~/.config/glab-cli/config
file which would defeat the purpose of saving the personal access token in 1Password in the first place.
Does anyone know how I can get this to work without having to save the token in plain text, setup SSH access using 1Password, or osx keychain?
I'm running on macOS.