Currently git-spindle stores its session token and username as plain text inside .gitspindle. I think it would be neat if git-spindle used the git-credential interface instead. That way the user can choose to store the data in plaintext by using git-credential-store or something more secure (there's backends for Linux-, MacOS- and Windows keyrings as well as lastpass.com for example).
git-credential could obviously be used both when adding an account and when reusing the token. I already had gitlab.com in my unlocked keyring for example so there's really no reason why I should have to type my username and password again when adding the account.
Currently
git-spindle
stores its session token and username as plain text inside.gitspindle
. I think it would be neat if git-spindle used thegit-credential
interface instead. That way the user can choose to store the data in plaintext by usinggit-credential-store
or something more secure (there's backends for Linux-, MacOS- and Windows keyrings as well as lastpass.com for example).An example of manually using git credential:
git-credential
could obviously be used both when adding an account and when reusing the token. I already hadgitlab.com
in my unlocked keyring for example so there's really no reason why I should have to type my username and password again when adding the account.