From 2eee72aa36b1f0391888ece0539c3538ec60f202 Mon Sep 17 00:00:00 2001
From: Dennis Ahrens <dennis.ahrens@hs-hannover.de>
Date: Fri, 17 Nov 2017 09:25:38 +0100
Subject: [PATCH] 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
---
 ssoauth/checks.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ssoauth/checks.py b/ssoauth/checks.py
index 991d90c..d89ecf5 100644
--- a/ssoauth/checks.py
+++ b/ssoauth/checks.py
@@ -113,6 +113,8 @@ def auth_urls_configured(app_configs, **kwargs):
 @register(Tags.security)
 def session_lifetime(app_configs, **kwargs):
     errors = list()
+    if conf.settings.SESSION_EXPIRE_AT_BROWSER_CLOSE:
+        return errors
     max_wanted = 60 * 60  # seconds
     if conf.settings.SESSION_COOKIE_AGE > max_wanted:
         errors.append(Error(
-- 
GitLab