Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] auth_session_timeout #715

Open
wants to merge 42 commits into
base: 18.0
Choose a base branch
from

Commits on Oct 17, 2024

  1. Configuration menu
    Copy the full SHA
    9e92175 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9e91070 View commit details
    Browse the repository at this point in the history
  3. Make modules uninstallable

    pedrobaeza authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    8936f29 View commit details
    Browse the repository at this point in the history
  4. Rename manifest files

    pedrobaeza authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    b2ff9df View commit details
    Browse the repository at this point in the history
  5. auth_session_timeout: Migrate to v10 * Bump versions * Installable to…

    … True * Add Usage section to ReadMe w/ Runbot link * `_crypt_context` now directly exposes the `CryptContext` * Change all instances of openerp to odoo * Add test coverage to IrConfigParameter * Add test coverage for res.users * Remove db from `get_session_parameters` method call * Remove deprecated skiparg for ormcache * Fix tests & lint * Switch cache to use self.cr.dbname * Fix ormcache
    lasley authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    2bf3c2d View commit details
    Browse the repository at this point in the history
  6. Module auth_session_timeout: Pluggability (#887)

    * Module auth_session_timeout:
    ---------------------------
    
    * Refactor to allow other modules to inherit and augment or override the following:
    ** Session expiry time (deadline) calculation
    ** Ignored URLs
    ** Final session expiry (with possibility to late-abort)
    * Re-ordered functionality to remove unnecessary work, as this code is called very often.
    * Do not expire a session if delay gets set to zero (or unset / false)
    
    * WIP
    
    * Fixed flake8 lint errors
    
    * Fixed flake8 lint errors
    
    * WIP
    
    * WIP
    
    * WIP
    
    * WIP
    
    * WIP
    
    * WIP
    
    * Module: auth-session-timeout: Refactor ResUser tests to use `unittest.mock` patching
    
    * Module: auth_session_timeout: Fixed flake8 lint errors
    
    * Module: auth_session_timeout: Fixed flake8 lint errors
    jmorgannz authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    987bee7 View commit details
    Browse the repository at this point in the history
  7. auth_session_timeout: Deprecate backwards compat + improve * Deprecat…

    …e backwards compatibility methods that were retained during v9 rework * Upgrade API and rename a few things for PEP-8 * Switch to HttpCase for tests * Switch to isolated build
    lasley authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    acace63 View commit details
    Browse the repository at this point in the history
  8. corrects AttributeError: 'HttpRequest' object has no attribute 'http'…

    … (#1070)
    
    * corrects AttributeError: 'HttpRequest' object has no attribute 'http'
    
    * updates the module version number for pull request #1070
    beenhere4hours authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    eee74ba View commit details
    Browse the repository at this point in the history
  9. auth_session_timeout: Migration to 11.0

    nadiaafa authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    667faa2 View commit details
    Browse the repository at this point in the history
  10. [MIG] auth_session_timeout: Migration to version 11.0

    New changes for move module, clean module, apply new oca guideline and make
    compatible with 11.0:
    
    * Move module from oca/server-tools:10.0  to oca/server-auth:11.0
    * Remove .DS_Store files, addd by mistake in early changes and not needed.
    * Fix error when make RPC request. Applied thanks to comment added by @christophlsa. For more information go to OCA/server-tools#1163 (review)
    * Update version to the first one in 11.0
    * Update README to match new guideline
    * Remove she bang coding
    * Use _authenticate method instead of deprecated method check. For more information go to https://github.com/odoo/odoo/blob/11.0/odoo/http.py#L1049
    * Improve auth_session_timeout method return raise SessionExpiredException exception instead of False. This will show a "session expired please reload page" message to the user.
    * Fix update unitet test. make then turn green and the update then to make them match with new changes
    
      - There was not getmtime() result definied in this test case, For that reason was returning a MagicMock() object, For this case their are trying to test that the session is valid, this is the same that the path of the file with session is not expired. To simulate that I just updated for the test case the getmtime() result to a value that will be greater than the delay expected: I used the current time This way when evaluationg if the sessions is expire will return False instead of TypeError: unorderable types: MagicMock() < float() The unit test still works the same and the result is without errors.
    
    * Fix plylint errors:
    
      - E302 expected 2 blank lines,
      - Not used variable and not valid var name. Remove e varaible since is not valid name and this one is not been used.
    zaoral authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    3228331 View commit details
    Browse the repository at this point in the history
  11. [12.0][MIG] auth_session_timeout

    Jaime Arroyo authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    988608e View commit details
    Browse the repository at this point in the history
  12. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-12.0/server-auth-12.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-12-0/server-auth-12-0-auth_session_timeout/pt_BR/
    Rodrigo Macedo authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    c1ffb94 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    562440f View commit details
    Browse the repository at this point in the history
  14. [REF] pre-commit lint

    dreispt authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ac9fe58 View commit details
    Browse the repository at this point in the history
  15. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-auth-13.0/server-auth-13.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-13-0/server-auth-13-0-auth_session_timeout/
    oca-transbot authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    0627886 View commit details
    Browse the repository at this point in the history
  16. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-auth-13.0/server-auth-13.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-13-0/server-auth-13-0-auth_session_timeout/
    oca-transbot authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    fe1b8ff View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f2ef556 View commit details
    Browse the repository at this point in the history
  18. [FIX] auth_session_timeout: session timeout applies only to user

    Make it so session timeout doe not apply to requests
    to a route with auth_method="public".
    
    Forward port of OCA#258
    pierre-halleux authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    af70f8c View commit details
    Browse the repository at this point in the history
  19. auth_session_timeout 14.0.1.0.1

    OCA-git-bot authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    e277555 View commit details
    Browse the repository at this point in the history
  20. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-14.0/server-auth-14.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-14-0/server-auth-14-0-auth_session_timeout/pt_BR/
    Rodrigo Macedo authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    097bde1 View commit details
    Browse the repository at this point in the history
  21. [IMP] auth_session_timeout: black, isort

    flachica authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    d1d72c5 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    71d571f View commit details
    Browse the repository at this point in the history
  23. Translated using Weblate (Catalan)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-15.0/server-auth-15.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_session_timeout/ca/
    Noel000 authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    b9640b2 View commit details
    Browse the repository at this point in the history
  24. Translated using Weblate (Italian)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-15.0/server-auth-15.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_session_timeout/it/
    mymage authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    4e44784 View commit details
    Browse the repository at this point in the history
  25. Translated using Weblate (Italian)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-15.0/server-auth-15.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_session_timeout/it/
    francesco-ooops authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    1d5ba6c View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7a7e90b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    bd5b1f4 View commit details
    Browse the repository at this point in the history
  28. [FIX] auth_session_timeout: problem whereby page is refreshed with F5…

    …, but /web is a public route, so it does not trigger the session check but it does trigger session save, so the file mtime is updated before the second HTTP call makes the check takes place, and session is not expired
    thomaspaulb authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    3a3dfb4 View commit details
    Browse the repository at this point in the history
  29. [UPD] Update auth_session_timeout.pot

    oca-ci authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    9642a30 View commit details
    Browse the repository at this point in the history
  30. [BOT] post-merge updates

    OCA-git-bot authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    100e75b View commit details
    Browse the repository at this point in the history
  31. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/
    weblate authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    f241135 View commit details
    Browse the repository at this point in the history
  32. Translated using Weblate (Spanish)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/es/
    Ivorra78 authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    a514330 View commit details
    Browse the repository at this point in the history
  33. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/
    weblate authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    2cfcf1d View commit details
    Browse the repository at this point in the history
  34. Translated using Weblate (Spanish)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/es/
    Ivorra78 authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    6183ca0 View commit details
    Browse the repository at this point in the history
  35. Translated using Weblate (Italian)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/it/
    mymage authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    1bdb7a7 View commit details
    Browse the repository at this point in the history
  36. Translated using Weblate (Catalan)

    Currently translated at 100.0% (3 of 3 strings)
    
    Translation: server-auth-16.0/server-auth-16.0-auth_session_timeout
    Translate-URL: https://translation.odoo-community.org/projects/server-auth-16-0/server-auth-16-0-auth_session_timeout/ca/
    jabelchi authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    ed3ed9c View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    39b5175 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    5c9306b View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    ce08148 View commit details
    Browse the repository at this point in the history
  40. [ADD] auth_session_timeout:Added pre-migration script for inactive_se…

    …ssion_time_out_ignored_url.
    bizzappdev authored and astirpe committed Oct 17, 2024
    Configuration menu
    Copy the full SHA
    b138111 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    4ccd7ee View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    d8b0df4 View commit details
    Browse the repository at this point in the history