1. 07 Nov, 2024 1 commit
    • Vincent Pelletier's avatar
      erp5_oauth2_authorisation: Do not edit OAuth2 Session on every refresh token issuance · 8db1f256
      Vincent Pelletier authored
      Malevolent users may decide to only - and repeatedly - present an otherwise
      valid refresh token, causing the issuance of a new access tokens everytime,
      likely along with new refresh tokens, causing many ZODB writes.
      Avoid this by pushing the token expiration date by one lifespan accuracy,
      so there can only be one write per session per lifespan accuracy period.
      8db1f256
  2. 24 Oct, 2024 3 commits
  3. 22 Oct, 2024 6 commits
  4. 23 Sep, 2024 1 commit
    • Titouan Soulard's avatar
      erp5_api_style: abort transaction on error · ee5017ac
      Titouan Soulard authored
      When an error was encountered in `jIOWebSection`, it did not abort the
      transaction, as it usually does in ERP5. This was made on purpose because
      errors are logged in ZODB, hence aborting the transaction didn't make it
      possible.
      
      This behavior was annoying, so this commit purposedly abort transaction before
      starting a new one to handle error. We are therefore able to log error in ZODB
      while also keeping the usual ERP5 behavior of aborting on error.
      ee5017ac
  5. 29 Apr, 2024 3 commits
  6. 22 Apr, 2024 4 commits
  7. 09 Apr, 2024 5 commits
  8. 03 Apr, 2024 17 commits