From 8d7f179c489c6e36ec1a754206d08997d5c860eb Mon Sep 17 00:00:00 2001 From: SonnyBA Date: Fri, 15 Nov 2024 11:46:30 +0100 Subject: [PATCH] Update OAF version (#280) --- CHANGELOG.rst | 12 ++++++++++++ docs/installation/config.rst | 1 + requirements/base.txt | 5 ++++- requirements/ci.txt | 7 ++++++- requirements/dev.txt | 7 ++++++- src/openklant/fixtures/default_admin_index.json | 4 ++++ 6 files changed, 33 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cb7b4f85..abdb3734 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,18 @@ Change history ============== +2.x.x +===== +*TBD* + +**New features** + +* Updated OAF version to 0.9.0. This upgrade allows admin users managing their sessions through the admin. + +**Bugfixes/QoL**: + +* [#258] Use correct API root in redoc OAS + 2.3.0 ===== *October 4, 2024* diff --git a/docs/installation/config.rst b/docs/installation/config.rst index c9b49abe..cb3813e3 100644 --- a/docs/installation/config.rst +++ b/docs/installation/config.rst @@ -80,6 +80,7 @@ Optional * ``LOG_LEVEL``: control the verbosity of logging output. Available values are ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO`` and ``DEBUG``. Defaults to: ``WARNING``. * ``LOG_QUERIES``: enable (query) logging at the database backend level. Note that you must also set ``DEBUG=1``, which should be done very sparingly!. Defaults to: ``False``. * ``LOG_REQUESTS``: enable logging of the outgoing requests. Defaults to: ``False``. +* ``SESSION_COOKIE_AGE``: For how long, in seconds, the session cookie will be valid. Defaults to: ``1209600``. * ``SESSION_COOKIE_SAMESITE``: The value of the SameSite flag on the session cookie. This flag prevents the cookie from being sent in cross-site requests thus preventing CSRF attacks and making some methods of stealing session cookie impossible.Currently interferes with OIDC. Keep the value set at Lax if used. Defaults to: ``Lax``. * ``CSRF_COOKIE_SAMESITE``: The value of the SameSite flag on the CSRF cookie. This flag prevents the cookie from being sent in cross-site requests. Defaults to: ``Strict``. * ``ENVIRONMENT``: An identifier for the environment, displayed in the admin depending on the settings module used and included in the error monitoring (see ``SENTRY_DSN``). The default is set according to ``DJANGO_SETTINGS_MODULE``. diff --git a/requirements/base.txt b/requirements/base.txt index 0d309152..8ebfb3c3 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -89,6 +89,7 @@ django==4.2.15 # django-relativedelta # django-rest-framework-condition # django-sendfile2 + # django-sessionprofile # django-setup-configuration # django-simple-certmanager # django-solo @@ -145,6 +146,8 @@ django-rest-framework-condition==0.1.1 # via commonground-api-common django-sendfile2==0.7.1 # via django-privates +django-sessionprofile==3.0.0 + # via open-api-framework django-setup-configuration==0.3.0 # via open-api-framework django-simple-certmanager==2.3.0 @@ -234,7 +237,7 @@ mozilla-django-oidc-db==0.19.0 # via open-api-framework notifications-api-common==0.2.2 # via commonground-api-common -open-api-framework==0.8.1 +open-api-framework==0.9.0 # via -r requirements/base.in orderedmultidict==1.0.1 # via furl diff --git a/requirements/ci.txt b/requirements/ci.txt index 2adfb9f1..1d32d180 100644 --- a/requirements/ci.txt +++ b/requirements/ci.txt @@ -146,6 +146,7 @@ django==4.2.15 # django-relativedelta # django-rest-framework-condition # django-sendfile2 + # django-sessionprofile # django-setup-configuration # django-simple-certmanager # django-solo @@ -236,6 +237,10 @@ django-sendfile2==0.7.1 # via # -r requirements/base.txt # django-privates +django-sessionprofile==3.0.0 + # via + # -r requirements/base.txt + # open-api-framework django-setup-configuration==0.3.0 # via # -r requirements/base.txt @@ -428,7 +433,7 @@ notifications-api-common==0.2.2 # via # -r requirements/base.txt # commonground-api-common -open-api-framework==0.8.1 +open-api-framework==0.9.0 # via -r requirements/base.txt orderedmultidict==1.0.1 # via diff --git a/requirements/dev.txt b/requirements/dev.txt index 0f895317..905a441d 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -147,6 +147,7 @@ django==4.2.15 # django-relativedelta # django-rest-framework-condition # django-sendfile2 + # django-sessionprofile # django-setup-configuration # django-simple-certmanager # django-solo @@ -241,6 +242,10 @@ django-sendfile2==0.7.1 # via # -r requirements/base.txt # django-privates +django-sessionprofile==3.0.0 + # via + # -r requirements/base.txt + # open-api-framework django-setup-configuration==0.3.0 # via # -r requirements/base.txt @@ -435,7 +440,7 @@ notifications-api-common==0.2.2 # via # -r requirements/base.txt # commonground-api-common -open-api-framework==0.8.1 +open-api-framework==0.9.0 # via -r requirements/base.txt orderedmultidict==1.0.1 # via diff --git a/src/openklant/fixtures/default_admin_index.json b/src/openklant/fixtures/default_admin_index.json index 4e5d16cd..8ed7ea15 100644 --- a/src/openklant/fixtures/default_admin_index.json +++ b/src/openklant/fixtures/default_admin_index.json @@ -88,6 +88,10 @@ "accounts", "user" ], + [ + "sessionprofile", + "sessionprofile" + ], [ "auth", "group"