horizon/openstack_dashboard
Colleen Murphy 2c104cc770 Make default domain usage consistent
The description for the OPENSTACK_KEYSTONE_DEFAULT_DOMAIN django
variable claims it refers to the ID of the domain. However, the
authenticate method of django_openstack_auth explicitly uses the name
when it requests a token[1], and when multidomain support is enabled
the user is asked for the domain name, not ID. If the operator tries to
set this variable to the ID of any domain besides keystone's own
Default domain, login will fail with "Could not find domain: <domain
ID>" in the keystone logs.  This patch forces horizon to use the
variable as a name instead of an ID and updates the comment, so that
everything using this variable is consistent with each other.

This wasn't caught before because the unit tests were only testing
against the default domain, so this patch also adds a second, enabled,
non-default mock domain to test with.

[1] http://git.openstack.org/cgit/openstack/django_openstack_auth/tree/openstack_auth/backend.py?h=2.4.1#n148

Change-Id: I4d16f831c9fc446859c9fb964b7609d5a76338fe
2016-11-28 12:41:06 +01:00
..
2016-11-28 12:41:06 +01:00
2016-10-05 09:01:29 +00:00
2016-10-20 18:51:10 +00:00
2016-10-19 16:15:39 +09:00
2016-09-24 20:44:48 +09:00
2016-11-28 12:41:06 +01:00
2016-08-18 16:28:57 +03:00
2015-12-22 02:01:07 -07:00
2016-08-04 16:53:41 +00:00
2016-02-25 09:49:43 -08:00
2016-03-28 11:03:08 +01:00
2016-03-08 15:17:38 -08:00