Simple CLI tool to manage OAuth clients and retrieve JWT. Store clients and their refresh tokens for quick access.
Run the following to install the latest version. Then add the executable to PATH.
curl -L https://github.com/MaxHerbs/tokens/releases/latest/download/tokens.zip -o tokens.zip
unzip tokens.zip
chmod +x tokensTo save a client, run the add command. This will store the client for use later.
tokens add --nickname <NAME> --auth-url https://<DOMAIN>/realms/master --client-id <CLIENT-ID>To get a token, run get <NICKNAME>. If the client has a valid refresh token stored, the token will be used. If not, it will prompt for your username and password, and store the token.
tokens get <NICKNAME>Tokens has a list option to view saved clients.
tokens listDelete an existing client with the delete command.
tokens delete <NICKNAME>