Skip to content
Snippets Groups Projects
  1. Feb 17, 2025
  2. Feb 04, 2025
  3. Dec 18, 2024
  4. Aug 30, 2024
  5. Aug 27, 2024
  6. Aug 14, 2024
  7. May 14, 2024
  8. May 02, 2024
    • Pierre-Yves David's avatar
      cli-auth-config: explicitly message about skipped update · 11734334
      Pierre-Yves David authored
      At the end of a auth-config command run, we ask the user if the newly
      obtained token should be written on disk or discarded.
      
      The default is to discard it (which seems a bit weird, but is not the
      point here). Unlike what we do on write, where a green confirmation
      message is displayed, we do not display any message when discarding.
      So a user doing things a bit too fast can imagine that the update went
      all fine as it just display a wall of green messages.
      
      So we add a simple yellow message pointing out that we ultimately did
      not write the new token. That should fix the problem.
      11734334
  9. Mar 29, 2024
  10. Mar 27, 2024
  11. Feb 27, 2024
  12. Feb 05, 2024
  13. Dec 05, 2023
  14. Dec 04, 2023
  15. Dec 01, 2023
  16. Nov 29, 2023
  17. Nov 15, 2023
    • Franck Bret's avatar
      Rebase · 1696ded0
      Franck Bret authored
      v0.8.0
      1696ded0
    • Franck Bret's avatar
      Apply Antoine Lambert review patch · 5fa878e4
      Franck Bret authored
      Store authentication tokens in global configuration file with following
      structure:
      
      keycloak:
        client_id: swh-web
        realm_name: SoftwareHeritage
        server_url: https://auth.softwareheritage.org/auth/
      keycloak_tokens:
        SoftwareHeritage:
          swh-web: xxxtokenxxx
      5fa878e4
    • Franck Bret's avatar
      Use keycloak configuration mechanism and add a 'swh auth config' command · 59f3326f
      Franck Bret authored
      Add configuration file argument to auth command group
      
      Use keycloak default configuration and defaults method to load and merge
      configuration (env > params > user configuration file > default auth
      configuration > defaultvalues)
      
      Add swh auth config command which can generate a token by providing a
      username (password will be asked by a prompt), or verify a provided
      token. If the token is valid user can save the authentication
      configuration with token to authentication configuration file which
      default to auth.yml
      59f3326f
    • Franck Bret's avatar
      Add set-token command · e4f31567
      Franck Bret authored
      This is a follow up of D8909.
      The set-token command prompt the user to fill a token if not provided by
      args. It checks the token is valid and then write it to configuration
      file.
      
      Related T4590
      e4f31567
  18. Oct 24, 2023
  19. Jul 07, 2023
  20. Jul 06, 2023
  21. Mar 14, 2023
    • Antoine Lambert's avatar
      starlette: Allow to provide access token in authorization header · 99e3c9be
      Antoine Lambert authored
      Previously the OpenID Connect backend was only allowing to provide
      a refresh token in authorization header for convenient access token
      renewal when querying a GraphQL service outside of a browser.
      
      When one wants to query a GraphQL service inside a browser, the
      access tokens are usually created and renewed client-side so also
      allow to provide an access token in the authorization header.
      In that case, the backend will simply try to decode it in order
      to authenticate the user.
      
      Related to swh-graphql#4652
      v0.7.2
      99e3c9be
  22. Feb 23, 2023
  23. Feb 17, 2023
  24. Feb 16, 2023
  25. Feb 13, 2023
  26. Feb 02, 2023
  27. Dec 19, 2022
  28. Oct 18, 2022
  29. Sep 12, 2022
  30. Jul 15, 2022
    • Antoine Lambert's avatar
      keycloak: Fix issue in authorization_url since python-keycloak 1.8.1 · 6c85751c
      Antoine Lambert authored
      The scope and state query parameters in the authorization URL are now
      handled by the KeycloakOpenID.auth_url method since the release of
      python-keycloak 1.8.1.
      
      To keep backward compatibility with older python-keycloak versions, like
      the one used in production, while ensuring support for recent ones we need
      to ensure scope and state query parameters will be overridden if provided
      in extra_params dict.
      v0.6.6
      6c85751c
  31. Jul 12, 2022
  32. May 30, 2022
Loading