Merge "Implement WEBSSO redirect"

This commit is contained in:
Zuul 2021-04-20 16:45:06 +00:00 committed by Gerrit Code Review
commit 87205757c6
3 changed files with 22 additions and 0 deletions

View File

@ -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: ""

View File

@ -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

View File

@ -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