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