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

Syncing from upstream OCA/server-auth (17.0) #515

Merged
merged 43 commits into from
Nov 1, 2024
Merged

Commits on May 13, 2024

  1. Configuration menu
    Copy the full SHA
    105309a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b67b4d0 View commit details
    Browse the repository at this point in the history
  3. Make modules uninstallable

    pedrobaeza authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bd23d07 View commit details
    Browse the repository at this point in the history
  4. Rename manifest files

    pedrobaeza authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    bbb793c 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    04d76b7 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    01094a7 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    35465eb 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    9bed7d3 View commit details
    Browse the repository at this point in the history
  9. auth_session_timeout: Migration to 11.0

    nadiaafa authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    4b3e923 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    cf8041d View commit details
    Browse the repository at this point in the history
  11. [12.0][MIG] auth_session_timeout

    Jaime Arroyo authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    5cf72ec 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    b9bbc41 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a963a14 View commit details
    Browse the repository at this point in the history
  14. [REF] pre-commit lint

    dreispt authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    53ed9f8 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    9970dce 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    efa246b View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    3081588 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 #258
    pierre-halleux authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    83b1477 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    86a0c7a 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    dfadf06 View commit details
    Browse the repository at this point in the history
  21. [IMP] auth_session_timeout: black, isort

    flachica authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    cba782d View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    1a075d9 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    52aacb6 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    768fdb3 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    017acec View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    b7d71da View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4c6270d 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    540390f View commit details
    Browse the repository at this point in the history
  29. [UPD] Update auth_session_timeout.pot

    oca-ci authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    fb540d5 View commit details
    Browse the repository at this point in the history
  30. [BOT] post-merge updates

    OCA-git-bot authored and Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    5173855 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    37c820e 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    da5e663 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    232cd50 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    a297521 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    938bb09 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 Loregs2 committed May 13, 2024
    Configuration menu
    Copy the full SHA
    64bcac2 View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    2bb2d4b View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    495241a View commit details
    Browse the repository at this point in the history

Commits on May 14, 2024

  1. Configuration menu
    Copy the full SHA
    5e04c9c View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. [ADD] auth_session_timeout:Added pre-migration script for inactive_se…

    …ssion_time_out_ignored_url.
    bizzappdev authored and Abranes committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    cb373c8 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Merge PR #646 into 17.0

    Signed-off-by pedrobaeza
    OCA-git-bot committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    e58c141 View commit details
    Browse the repository at this point in the history
  2. [UPD] Update auth_session_timeout.pot

    oca-ci committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    e9d0014 View commit details
    Browse the repository at this point in the history
  3. [BOT] post-merge updates

    OCA-git-bot committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    def9106 View commit details
    Browse the repository at this point in the history