diff --git a/defaults/main.yml b/defaults/main.yml index 3bc658fe..9df717c8 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -492,4 +492,8 @@ horizon_keystone_admin_roles: # Set the "credentials" authentication choice to show as default. # The list of authentication mechanisms which include keystone # federation protocols and identity provider/federation protocol +#horizon_websso_keystone_url: "{{ horizon_keystone_endpoint }}" 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: "" diff --git a/releasenotes/notes/horizon_websso_redirect-662cbf01b431efb1.yaml b/releasenotes/notes/horizon_websso_redirect-662cbf01b431efb1.yaml new file mode 100644 index 00000000..9b145277 --- /dev/null +++ b/releasenotes/notes/horizon_websso_redirect-662cbf01b431efb1.yaml @@ -0,0 +1,9 @@ +--- +features: + - | + Implemented horizon WEBSSO auto redirects. Following new variables + were added to manage redirects configuration: + + - horizon_websso_default_redirect + - horizon_websso_default_redirect_region + - horizon_websso_default_redirect_logout diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index 7b887b5f..47433d37 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -190,6 +190,15 @@ WEBSSO_INITIAL_CHOICE = "{{ horizon_websso_initial_choice }}" WEBSSO_KEYSTONE_URL = "{{ horizon_websso_keystone_url }}" {% endif %} +{% if horizon_websso_default_redirect | bool %} +WEBSSO_DEFAULT_REDIRECT = "{{ horizon_websso_default_redirect }}" +WEBSSO_DEFAULT_REDIRECT_PROTOCOL = "{{ horizon_websso_initial_choice }}" +WEBSSO_DEFAULT_REDIRECT_REGION = "{{ horizon_websso_default_redirect_region }}" +{% if horizon_websso_default_redirect_logout | length > 0 %} +WEBSSO_DEFAULT_REDIRECT_LOGOUT = "{{ horizon_websso_default_redirect_logout }}" +{% endif %} +{% endif %} + # The list of authentication mechanisms which include keystone # federation protocols and identity provider/federation protocol # mapping keys (WEBSSO_IDP_MAPPING). Current supported protocol