File tree 1 file changed +5
-0
lines changed
backend/src/openarchiefbeheer/conf
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 343
343
SESSION_COOKIE_SAMESITE = config ("SESSION_COOKIE_SAMESITE" , "Lax" )
344
344
SESSION_COOKIE_SECURE = config ("SESSION_COOKIE_SECURE" , IS_HTTPS )
345
345
SESSION_COOKIE_HTTPONLY = True
346
+ SESSION_COOKIE_AGE = config ("SESSION_COOKIE_AGE" , 1209600 ) # 2 weeks in seconds
346
347
347
348
CSRF_COOKIE_SAMESITE = config ("CSRF_COOKIE_SAMESITE" , "Lax" )
348
349
CSRF_COOKIE_SECURE = config ("CSRF_COOKIE_SECURE" , IS_HTTPS )
637
638
OIDC_REDIRECT_ALLOWED_HOSTS = config (
638
639
"OIDC_REDIRECT_ALLOWED_HOSTS" , default = "" , split = True
639
640
)
641
+ # See issue #422 and https://mozilla-django-oidc.readthedocs.io/en/2.0.0/installation.html#validate-id-tokens-by-renewing-them
642
+ OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS = config (
643
+ "OIDC_RENEW_ID_TOKEN_EXPIRY_SECONDS" , default = 60 * 15
644
+ )
640
645
641
646
# Django privates
642
647
#
You can’t perform that action at this time.
0 commit comments