django_openstack_auth/openstack_auth/tests
Colleen Murphy 35a2fb35a7 Add support for a domain dropdown menu at login
On clouds that use domain-specific Identity configuration[1], a user
must provide both their username and domain in order to log into
horizon. Without this patch, users must be aware of their domain's name
and enter it into a text box at login. This is sensible on public
clouds, because supplying potential domains to an unauthenticated user
exposes too much information about other customers and makes potential
attacks easier. On private clouds, however, it is a hinderance to
usability. For example, when migrating from a single-domain
configuration to a multi-domain configuration, users must now guess or
be informed of their domain in order to enter it in the text box. As
another example, when keystone domains are mapped to Active Directory
domains, the user may not be used to having to know their AD domains and
would prefer to select a likely one based on their geographical location
or department from a dropdown menu.

This patch adds support for a new config option,
"OPENSTACK_KEYSTONE_DOMAIN_DROPDOWN" for enabling a dropdown menu
instead of a textbox when MULTIDOMAIN_SUPPORT is enabled. The dropdown
is disabled by default. If enabled, choices for domains to display and
submit are configured in "OPENSTACK_KEYSTONE_DOMAIN_CHOICES". It is not
possible to dynamically generate a list of domains before the user has
authenticated and this would be a huge security hole if this was
possible. Requiring the admin to statically set the domain list allows
them to hide private domains like the service users domain.

[1] https://docs.openstack.org/developer/keystone/configuration.html#domain-specific-drivers

Change-Id: Ie0a7e36b9975342fab81ddebb87880608d3ef187
Needed-By: I71d64182524d1f54745d9e42347b3a605fa2a920
2017-07-03 10:37:41 +02:00
..
conf Makes policy.check aware of domain scoped token 2015-11-23 22:18:48 +00:00
templates/auth Initial commit. 2012-07-03 02:25:01 -07:00
__init__.py Initial commit. 2012-07-03 02:25:01 -07:00
data_v2.py Move d-o-a auth library to keystoneauth 2015-12-09 13:46:45 +00:00
data_v3.py Add K2K Auth Dropdown 2017-01-19 13:00:08 -07:00
models.py Initial commit. 2012-07-03 02:25:01 -07:00
run_tests.py Fix the py27dj19 tests 2016-01-15 13:12:24 +00:00
settings.py Add K2K Auth Dropdown 2017-01-19 13:00:08 -07:00
tests.py Add support for a domain dropdown menu at login 2017-07-03 10:37:41 +02:00
urls.py Update URLs to Django 1.8+ style 2016-02-16 19:41:52 +00:00