Skip to content
Snippets Groups Projects
  1. Feb 17, 2023
  2. Feb 16, 2023
  3. Feb 13, 2023
  4. Feb 02, 2023
  5. Dec 19, 2022
  6. Oct 18, 2022
  7. Sep 12, 2022
  8. 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
  9. Jul 12, 2022
  10. May 30, 2022
  11. May 20, 2022
  12. May 02, 2022
  13. Apr 26, 2022
  14. Apr 21, 2022
  15. Apr 14, 2022
    • Antoine Lambert's avatar
      backends: Report only relevant exceptions to sentry · 7fddad7e
      Antoine Lambert authored
      When catching KeycloakError exceptions, other exception types
      will be then raised like ValueError or AuthenticationFailed.
      
      Those will be processed by django applications using these auth
      middlewares so there is no need to duplicate error reports in
      sentry here.
      7fddad7e
  16. Apr 08, 2022
  17. Apr 06, 2022
  18. Apr 05, 2022
  19. Mar 22, 2022
  20. Feb 10, 2022
  21. Feb 07, 2022
  22. Dec 16, 2021
  23. Dec 01, 2021
  24. Aug 23, 2021
    • Antoine Lambert's avatar
      django/backends: Handle error when user session is no longer active · 508b476d
      Antoine Lambert authored
      When a user session has been terminated without using the logout view
      (for instance a user can logout from all its authenticated sessions
      using the Keycloak account UI), the expired OIDC profile is still
      in webapp cache which causes errors and prevent new user logins.
      
      So ensure to remove expired profile from cache when detecting Keycloak
      session is no longer active in django authentication backend.
      
      Related to T3496
      v0.6.1
      508b476d
  25. Jul 01, 2021
  26. Jun 09, 2021
  27. Apr 27, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · dc9ea01d
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      v0.5.4
      dc9ea01d
    • Antoine Lambert's avatar
      pytest_plugin: Fix a sphinx warning · a81214a8
      Antoine Lambert authored
      Sphinx complains about an unexpected indentation if a constructor
      docstring is missing.
      a81214a8
  28. Apr 22, 2021
  29. Apr 13, 2021
  30. Apr 09, 2021
  31. Apr 07, 2021
    • Antoine Lambert's avatar
      django/backends: Improve expired token handling · 309118c1
      Antoine Lambert authored
      The first time a user sends an expired token previously used to
      perform authenticated Web API calls, Keycloak will return the
      following error message: "Offline session not active".
      
      So handle that error message too for indicating a token has expired.
      
      Related to T3121
      v0.5.2
      309118c1
    • Antoine Lambert's avatar
      django/backends: Improve error message when a bearer token expired · d06924ed
      Antoine Lambert authored
      This replaces the Keycloak error message by a more comprehensible one
      for end users.
      
      Unfortunately, there is no way to get the bearer token validity period
      apart using Keycloak Admin REST API but we clearly do not want to query
      it in a django authentication backend.
      
      Related to T3121
      v0.5.1
      d06924ed
Loading