horizon/openstack_auth
Sergey Vilgelm 2842d7df37
Fix untrusted dashboard host
The `openstack_auth login` view uses `request.build_absolute_uri` function
to build an origin uri when websso is enabled and
the WEBSSO_DEFAULT_REDIRECT_PROTOCOL is set.
This function doesn't insert the `WEBROOT` variable into uri what causes an
error:
    http://domain.name/auth/websso/ is not a trusted dashboard host
Using the `build_absolute_uri` from `utils` module fixes this problem. It
generates the right uri:
    http://domain.name/dashboard/auth/websso/

Change-Id: I94100f66a9f07eb8da75d344cbd120838fe25d1e
2019-01-22 23:17:33 -06:00
..
locale Imported Translations from Zanata 2018-12-30 08:29:34 +00:00
plugin pylint: fix too-many-nested-blocks/redefined-argument-from-local 2019-01-17 00:41:20 +09:00
tests fix checking if enforcer was loaded 2018-12-22 22:42:54 +09:00
__init__.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
backend.py pylint: fix several warnings 2019-01-15 00:22:27 +09:00
exceptions.py pylint: fix unnecessary-pass warning 2019-01-16 13:10:16 +09:00
forms.py Properly calculate auth_url for WEBSSO from POST data 2018-10-31 14:49:06 +01:00
middleware.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
models.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
policy.py fix checking if enforcer was loaded 2018-12-22 22:42:54 +09:00
urls.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
user.py pylint: fix several coding convention violations 2019-01-17 00:05:27 +09:00
utils.py Fix django.contrib.auth.middleware monkey patching 2018-11-06 21:36:45 +00:00
views.py Fix untrusted dashboard host 2019-01-22 23:17:33 -06:00