horizon/openstack_auth
Gabriel Adrian Samfira 66b5713296 Properly set session value for services_region
Currently, the value stored in the services_region cookie is ignored
when logging into horizon. This causes confusion for users that have
previously selected one region, to find themselves in a different
region after their token expires and are forced to log in again.

This change sets the services_region session value to the value present
in the cookie, with a fallback to the login region.

Closes-bug: #2040455

Change-Id: I051648844bf8dffce792ff553e9949285b1be6d4
Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
2024-02-19 12:52:01 +00:00
..
locale Imported Translations from Zanata 2023-10-27 04:43:08 +00:00
plugin Add TOTP support 2023-08-18 12:02:25 +00:00
tests Add TOTP support 2023-08-18 12:02:25 +00:00
__init__.py Add Django OpenStack Auth to Horizon 2017-09-27 12:06:57 +01:00
backend.py Use OPENSTACK_ENDPOINT_TYPE by default 2022-12-26 07:01:07 +09:00
defaults.py Add TOTP support 2023-08-18 12:02:25 +00:00
exceptions.py Add TOTP support 2023-08-18 12:02:25 +00:00
forms.py Add TOTP support 2023-08-18 12:02:25 +00: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 Merge "Support policy-in-code and deprecated policy" 2021-03-04 22:01:52 +00:00
urls.py Add TOTP support 2023-08-18 12:02:25 +00:00
user.py Add system scope support to context switcher 2021-11-26 14:09:46 +01:00
utils.py Add system scope support to context switcher 2021-11-26 14:09:46 +01:00
views.py Properly set session value for services_region 2024-02-19 12:52:01 +00:00