cli: Add auth command group
Usage: swh auth [OPTIONS] COMMAND [ARGS]... Authenticate Software Heritage users with OpenID Connect. This CLI tool eases the retrieval of bearer tokens to authenticate a user querying the Software Heritage Web API. Options: --oidc-server-url TEXT URL of OpenID Connect server (default to "https://auth.softwareheritage.org/auth/") --realm-name TEXT Name of the OpenID Connect authentication realm (default to "SoftwareHeritage") --client-id TEXT OpenID Connect client identifier in the realm (default to "swh-web") -h, --help Show this message and exit. Commands: login Login and create new offline OpenID Connect session. logout Logout from an offline OpenID Connect session. refresh Refresh an offline OpenID Connect session. Closes T2268
Showing
- docs/index.rst 90 additions, 0 deletionsdocs/index.rst
- requirements-test.txt 1 addition, 0 deletionsrequirements-test.txt
- requirements.txt 1 addition, 0 deletionsrequirements.txt
- setup.py 4 additions, 0 deletionssetup.py
- swh/web/client/auth.py 95 additions, 0 deletionsswh/web/client/auth.py
- swh/web/client/cli.py 105 additions, 0 deletionsswh/web/client/cli.py
- swh/web/client/tests/test_cli.py 67 additions, 0 deletionsswh/web/client/tests/test_cli.py
Loading
Please register or sign in to comment