HomeSoftware Heritage

cli: Add auth command group

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

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

Details

Provenance
anlambertAuthored on Mar 18 2020, 6:50 PM
anlambertPushed on Mar 24 2020, 12:08 PM
Differential Revision
D2861: cli: Add auth command group
Tasks
T2268: Add a CLI tool to ease the retrieval of authentication tokens
Build Status
Buildable 11309
Build 17101: test-and-buildJenkins

Commit No Longer Exists

This commit no longer exists in the repository.