Skip to content

MaxHerbs/tokens

Repository files navigation

CI GitHub last commit Coverage License

Tokens

Simple CLI tool to manage OAuth clients and retrieve JWT. Store clients and their refresh tokens for quick access.

Installing the Tool

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 tokens

Usage

Adding Clients

To 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>

Getting Tokens

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>

View Saved Clients

Tokens has a list option to view saved clients.

tokens list

Remove a Stored Client

Delete an existing client with the delete command.

tokens delete <NICKNAME>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages