Skip to content
Snippets Groups Projects
Commit 2eee72aa authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Check session lifetime adjusted.

When you provide SESSION_EXPIRE_AT_BROWSER_CLOSE
ssoauth is fine with it and does not cry about
values in SESSION_COOKIE_AGE
parent 8f175057
Branches
Tags
No related merge requests found
...@@ -113,6 +113,8 @@ def auth_urls_configured(app_configs, **kwargs): ...@@ -113,6 +113,8 @@ def auth_urls_configured(app_configs, **kwargs):
@register(Tags.security) @register(Tags.security)
def session_lifetime(app_configs, **kwargs): def session_lifetime(app_configs, **kwargs):
errors = list() errors = list()
if conf.settings.SESSION_EXPIRE_AT_BROWSER_CLOSE:
return errors
max_wanted = 60 * 60 # seconds max_wanted = 60 * 60 # seconds
if conf.settings.SESSION_COOKIE_AGE > max_wanted: if conf.settings.SESSION_COOKIE_AGE > max_wanted:
errors.append(Error( errors.append(Error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment