This repository includes a sample command line tool for authenticating using SSO.
- Requirements: Python >=3.11 - for learning purpose
.
├── Makefile
├── NOTES.md
├── README.md
├── pyproject.toml
├── src
│ ├── auth.py
│ ├── commands
│ │ └── api.py
│ │ └── sso.py
│ └── main.py
└── tests
└── test_auth.py
Relevant modules:
- main.py: CLI main entrypoints
- auth.py: Handles authentication against the identity provider
- commands: Folder for including CLI commands
$ pip install .
$ sso-cli --help
- Create&activate virtualenv
$ make venv
$ source .venv/bin/activate
- Install with dev requirements
$ pip install -e ".[dev]""
- Run lint and tests
$ make lint
$ make tests