Revert "Fix horizon user session timeout"
This reverts commit 92afe0a11b4588bb3af59170f4a62214778e8fc6. That commit is no longer needed as we well be addressing the timeout issue in keystone. Also removes reference to fix_for_session_timeout.patch from 0007-meta-patch-for-distributed-keystone-fix.patch Signed-off-by: David Sullivan <david.sullivan@windriver.com> Conflicts: openstack/python-django-openstack-auth/centos/meta_patches/PATCH_ORDER Change-Id: I18debc8d9b1f7b92088bc988ebfe9114ebe0df9a Partial-Bug: 1797186
This commit is contained in:
parent
b7a263d883
commit
5487646a40
@ -1 +1 @@
|
||||
TIS_PATCH_VER=4
|
||||
TIS_PATCH_VER=5
|
||||
|
@ -8,15 +8,15 @@ Subject: [PATCH 1/1] [PATCH] meta patch for distributed keystone fix
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/SPECS/python-django-openstack-auth.spec b/SPECS/python-django-openstack-auth.spec
|
||||
index 8be7844..f98d7ba 100644
|
||||
index 90b4692..89acf21 100644
|
||||
--- a/SPECS/python-django-openstack-auth.spec
|
||||
+++ b/SPECS/python-django-openstack-auth.spec
|
||||
@@ -20,6 +20,7 @@ Patch0002: 0002-disable-token-validation-per-auth-request.patch
|
||||
@@ -19,6 +19,7 @@ Patch0001: 0001-Pike-rebase-for-openstack-auth.patch
|
||||
Patch0002: 0002-disable-token-validation-per-auth-request.patch
|
||||
Patch0003: 0003-cache-authorized-tenants-in-cookie-to-improve-performance.patch
|
||||
Patch0004: 0004-Distributed-Keystone.patch
|
||||
Patch0005: fix_for_session_timeout.patch
|
||||
+Patch0006: fix_for_dc_region_switching.patch
|
||||
|
||||
+Patch0005: fix_for_dc_region_switching.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
--
|
||||
|
@ -4,5 +4,4 @@
|
||||
0004-meta-disable-token-validation-per-auth-req.patch
|
||||
0005-meta-cache-authorized-tenants-in-cookie-to-improve-performance.patch
|
||||
0006-meta-Distributed-Keystone.patch
|
||||
spec-include-fix_for_session_timeout.patch
|
||||
0007-meta-patch-for-distributed-keystone-fix.patch
|
||||
|
@ -1,24 +0,0 @@
|
||||
From 2ba11680cdbdf309122e0ad2d624e768deba8ec5 Mon Sep 17 00:00:00 2001
|
||||
From: Kristine Bujold <kristine.bujold@windriver.com>
|
||||
Date: Wed, 6 Jun 2018 08:02:32 -0400
|
||||
Subject: [PATCH 1/1] Adding patch file
|
||||
|
||||
---
|
||||
SPECS/python-django-openstack-auth.spec | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/SPECS/python-django-openstack-auth.spec b/SPECS/python-django-openstack-auth.spec
|
||||
index f925d87..9e5aacb 100644
|
||||
--- a/SPECS/python-django-openstack-auth.spec
|
||||
+++ b/SPECS/python-django-openstack-auth.spec
|
||||
@@ -19,6 +19,7 @@ Patch0001: 0001-Pike-rebase-for-openstack-auth.patch
|
||||
Patch0002: 0002-disable-token-validation-per-auth-request.patch
|
||||
Patch0003: 0003-cache-authorized-tenants-in-cookie-to-improve-performance.patch
|
||||
Patch0004: 0004-Distributed-Keystone.patch
|
||||
+Patch0005: fix_for_session_timeout.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
--
|
||||
1.8.3.1
|
||||
|
@ -1,27 +0,0 @@
|
||||
From ff48b415941e51f02ba7f9377ba3f9225721bfe1 Mon Sep 17 00:00:00 2001
|
||||
From: Kristine Bujold <kristine.bujold@windriver.com>
|
||||
Date: Wed, 6 Jun 2018 07:53:59 -0400
|
||||
Subject: [PATCH 1/1] Fix horizon user session timeout
|
||||
|
||||
---
|
||||
openstack_auth/views.py | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/openstack_auth/views.py b/openstack_auth/views.py
|
||||
index ad339c4..a680abf 100644
|
||||
--- a/openstack_auth/views.py
|
||||
+++ b/openstack_auth/views.py
|
||||
@@ -122,6 +122,10 @@ def login(request, template_name=None, extra_context=None, **kwargs):
|
||||
region_name = regions.get(login_region)
|
||||
request.session['region_endpoint'] = region
|
||||
request.session['region_name'] = region_name
|
||||
+
|
||||
+ # Adding the user's last_login to the session
|
||||
+ request.session['_user_login'] = request.user.last_login
|
||||
+
|
||||
expiration_time = request.user.time_until_expiration()
|
||||
threshold_days = getattr(
|
||||
settings, 'PASSWORD_EXPIRES_WARNING_THRESHOLD_DAYS', -1)
|
||||
--
|
||||
1.8.3.1
|
||||
|
Loading…
x
Reference in New Issue
Block a user