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