Skip to content

Commit ff8a7ca

Browse files
committed
Make session cookie age and oidc token renew timeouts configurable
1 parent 1309c42 commit ff8a7ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/open_inwoner/conf/base.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,10 @@
512512
"ADMIN_SESSION_COOKIE_AGE", 3600
513513
) # Default 1 hour max session duration for admins
514514
SESSION_WARN_DELTA = 120 # Warn 2 minutes before end of session.
515-
SESSION_COOKIE_AGE = 900 # Set to 15 minutes or less for testing
515+
# Set to 15 minutes or less for testing
516+
SESSION_COOKIE_AGE = config("SESSION_COOKIE_AGE", 900)
517+
OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS = config("OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS", 901)
518+
516519

517520
LOGIN_REDIRECT_URL = "/"
518521
LOGOUT_REDIRECT_URL = "/accounts/login/"
@@ -891,6 +894,8 @@
891894
ES_MAX_SIZE = 10000
892895
ES_SUGGEST_SIZE = 5
893896

897+
# Search page pagination trigger
898+
RESULTS_PER_PAGE = config("RESULTS_PER_PAGE", default=9)
894899

895900
# django import-export
896901
IMPORT_EXPORT_USE_TRANSACTIONS = True

0 commit comments

Comments
 (0)