Skip to content

Instantly share code, notes, and snippets.

@jkitching
Last active August 25, 2023 04:23
Show Gist options
  • Save jkitching/1e6bab9e3fd935aca2169528cd7eb497 to your computer and use it in GitHub Desktop.
Save jkitching/1e6bab9e3fd935aca2169528cd7eb497 to your computer and use it in GitHub Desktop.
#!/bin/bash
# keyring tool is provided by Python keyring package
username="your.email@gmail.com"
read -sp "$username app password: " password
echo
input="$username\n$password\n"
json=`echo -e $input | docker run -i gpsoauth_login`
echo $json
token=`echo $json | jq '.Token'`
echo $token | keyring set gpsoauth-token "$username"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment