Skip to content

alexhermida/sample_sso_cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample repo for building CLI with SSO

This repository includes a sample command line tool for authenticating using SSO.

  • Requirements: Python >=3.11 - for learning purpose

Folder structure

    .
    ├── 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

Installation & run

    $ pip install .
    $ sso-cli --help

Development

  1. Create&activate virtualenv
    $ make venv
    $ source .venv/bin/activate
  1. Install with dev requirements
    $ pip install -e ".[dev]""
  1. Run lint and tests
    $ make lint
    $ make tests

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published