Skip to content
Snippets Groups Projects
  1. Feb 17, 2021
  2. Feb 16, 2021
  3. Feb 05, 2021
  4. Feb 03, 2021
  5. Feb 02, 2021
  6. Jan 26, 2021
  7. Jan 21, 2021
  8. Jan 12, 2021
    • Antoine Lambert's avatar
      hypothesis: Fix errors appeared with release 6.0 · e702c28a
      Antoine Lambert authored
      hypothesis 6.0 release turned the warning about using function scope
      pytest fixtures into an error which makes a lot of tests now failing.
      
      So add the new HealthCheck.function_scoped_fixture value into the
      suppress_health_check list of hypothesis profiles settings.
      e702c28a
  9. Jan 08, 2021
  10. Jan 07, 2021
  11. Jan 06, 2021
  12. Jan 05, 2021
    • Antoine Lambert's avatar
      auth: Implement access token renewal in OIDC Authorization Code backend · 6499c518
      Antoine Lambert authored
      Previously when an access token has expired, the OIDC session was attempted
      to be silently refreshed through the use of the OIDCSessionRefreshMiddleware
      class.
      
      But silent refresh should only be performed with the OIDC Implicit flow as no
      refresh token gets issued in that case.
      
      swh-web uses OIDC Authorization Code flow to login users so that commit
      implements access token renewal directly in the django auth backend through
      the use of a refresh token.
      
      Currently, refresh token have a living period of 30 minutes, meaning a user
      can have its authenticated session in idle state during that period.
      If he visits a new web page during that idle period, its authenticated
      session will then be renewed for another 30 minutes.
      
      Also rename OIDCSessionRefreshMiddleware to OIDCSessionExpiredMiddleware.
      The middleware will now simply redirects to the logout page if it detects
      the OIDC session has expired.
      6499c518
  13. Dec 30, 2020
  14. Dec 14, 2020
  15. Dec 11, 2020
    • Antoine Lambert's avatar
      assets/revision: Fix a couple of bugs related to events handling · ed7a4a37
      Antoine Lambert authored
      When browsing a content through the revision view, the click event handlers
      for highlighting content lines or diff lines in the Changes tab were in
      conflict leading to weird GUI behavior. So ensure each click handler is
      executed only when needed.
      
      Also modifying URL fragment when resetting diff highlighting triggers the
      hashchange handler for code highlighting so avoid processing the fragment
      if it does not match line numbers regexp.
      
      Finally, prevent unwanted document scrolling when modifying URL fragment
      after the cancellation of diff highlighting.
      ed7a4a37
    • Antoine Lambert's avatar
      misc/coverage: Add Guix logo · 350c89d2
      Antoine Lambert authored
      Closes T2880
      350c89d2
  16. Dec 10, 2020
    • Antoine Lambert's avatar
      auth: Generate bearer token using OIDC Authorization Code flow · 7bd24236
      Antoine Lambert authored
      Instead of using the OIDC Direct Grant flow to generate bearer tokens
      for Web API authentication, use the more secured Authorization Code
      flow (as in webapp login) to avoid proxying SSO credentials from django
      backend to Keycloak server.
      
      As a consequence, previously stored encrypted tokens in webapp database
      has to be removed as the encryption scheme has changed. Hopefully,
      there is currently only a couple in production database generated by
      swh staff members so the impact will be quite limited.
      7bd24236
  17. Dec 09, 2020
  18. Dec 08, 2020
  19. Dec 04, 2020
  20. Dec 03, 2020
  21. Dec 02, 2020
  22. Nov 25, 2020
  23. Nov 24, 2020
Loading