From 694169c700d922b1245b75a28ff66ff4d3d18168 Mon Sep 17 00:00:00 2001 From: Andrew Bonney Date: Wed, 3 Aug 2022 08:13:50 +0100 Subject: [PATCH] Add support for websso http referer variable added in yoga This variable was added in the Yoga release to permit changes to how Horizon contacts Keystone in an IDP setup. Change-Id: I959f0f84b264ffc25481e9becb3059f28a233010 --- defaults/main.yml | 1 + templates/horizon_local_settings.py.j2 | 2 ++ 2 files changed, 3 insertions(+) diff --git a/defaults/main.yml b/defaults/main.yml index 741942ec..a88d5cb0 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -510,3 +510,4 @@ horizon_websso_initial_choice: "credentials" horizon_websso_default_redirect: False horizon_websso_default_redirect_region: "{{ horizon_websso_keystone_url | default(horizon_keystone_endpoint) }}" horizon_websso_default_redirect_logout: "" +horizon_websso_use_http_referer: True diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index f957b124..862a090c 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -202,6 +202,8 @@ WEBSSO_DEFAULT_REDIRECT_LOGOUT = "{{ horizon_websso_default_redirect_logout }}" {% endif %} {% endif %} +WEBSSO_USE_HTTP_REFERER = {{ horizon_websso_use_http_referer | bool }} + # The list of authentication mechanisms which include keystone # federation protocols and identity provider/federation protocol # mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol