Skip to content
Snippets Groups Projects
  1. Apr 20, 2020
  2. Apr 08, 2020
  3. Mar 24, 2020
    • Antoine Lambert's avatar
      client: Add OpenID Connect bearer token authentication · 492be567
      Antoine Lambert authored
      By providing a refresh token, obtained with the "swh auth login" command
      to the new authenticate method of the client, all emitted requests will
      be authenticated using a bearer token sent in headers.
      
      Related to T1927
      492be567
    • Antoine Lambert's avatar
      cli: Add auth command group · 842b7bc7
      Antoine Lambert authored
      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
      842b7bc7
  4. Mar 20, 2020
  5. Mar 19, 2020
  6. Mar 18, 2020
Loading