token-auth-cli

Simple tool for testing token authentication during development.


Keywords
async, cli, python
Install
pip install token-auth-cli==0.2.1

Documentation

PyPI GitHub release (latest SemVer including pre-releases) GitHub all releases PyPI - Python Version

GitHub issues GitHub commit activity GitHub Repo stars

Python package Pylint

token-auth-cli

Description

Simple tool for testing token authentication during development.

Installation

pip install token-auth-cli

or

git clone https://github.com/0djentd/token-auth-cli.git
cd token-auth-cli
python -m pip install .

How to use

Usage: token-auth-cli [OPTIONS] COMMAND [ARGS]...

  token-auth-cli

  Simple tool for testing token authentication during development.

Options:
  --verbose / --no-verbose    Show additional information
  --debug / --no-debug        Show debug information
  --confirm-settings BOOLEAN  Confirm settings before trying to get token.
  --show-settings BOOLEAN     Show settings before trying to get token.
  --api TEXT                  API url.
  --api-get-token TEXT        API url to use when trying to get token.
  --api-get TEXT              API url to check if token valid.
  --config FILE               Config file.
  --store BOOLEAN             Store users/tokens.
  --help                      Show this message and exit.

Commands:
  init     Create config file and users/tokens storage.
  list     List stored users/tokens.
  login    Get token and store it.
  relogin  Try to use stored token for authentication.
  remove   Remove stored user/token.