Skip to content
Snippets Groups Projects
  1. Nov 09, 2020
  2. Oct 22, 2020
  3. Oct 15, 2020
  4. Oct 06, 2020
  5. Oct 02, 2020
  6. Sep 25, 2020
  7. Sep 24, 2020
  8. Sep 18, 2020
  9. Sep 17, 2020
  10. Sep 10, 2020
  11. Aug 27, 2020
  12. Aug 25, 2020
  13. Aug 21, 2020
  14. Aug 06, 2020
  15. Apr 29, 2020
  16. Apr 20, 2020
  17. Apr 08, 2020
  18. 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
  19. Mar 20, 2020
Loading