Swift configures auth_token purely by paste options, not oslo.config.
This means that we cannot rely on purely using the keystoneclient
load_from_config_options for auth plugins.
Copy the logic from keystoneclient regarding auth plugin loading from
config files and make it specific to the _conf_get that auth_token
middleware uses so that the auth plugin options obey options from paste
as other options do.
This will be replaced with a keystoneclient helper as soon as possible,
however we want to fix the swift issue before that happens and we will
still be compatible going forward.
Reviewed: https:/ /review. openstack. org/161962 /git.openstack. org/cgit/ openstack/ keystonemiddlew are/commit/ ?id=06bdfc886fe d7e30684a612a3c 6ff8616eb2be34
Committed: https:/
Submitter: Jenkins
Branch: master
commit 06bdfc886fed7e3 0684a612a3c6ff8 616eb2be34
Author: Jamie Lennox <email address hidden>
Date: Fri Mar 6 11:28:21 2015 +1100
Allow loading auth plugins via overrides
Swift configures auth_token purely by paste options, not oslo.config. from_config_ options for auth plugins.
This means that we cannot rely on purely using the keystoneclient
load_
Copy the logic from keystoneclient regarding auth plugin loading from
config files and make it specific to the _conf_get that auth_token
middleware uses so that the auth plugin options obey options from paste
as other options do.
This will be replaced with a keystoneclient helper as soon as possible,
however we want to fix the swift issue before that happens and we will
still be compatible going forward.
Change-Id: I54ac4c566cb798 196ea18e24d4ce8 68450f269f3
Closes-Bug: #1428900