Merge "Fall back to the legacy auth_uri option"
This commit is contained in:
commit
f9e4b30a95
@ -38,8 +38,9 @@ class KeystoneClientV3(object):
|
|||||||
def auth_url(self):
|
def auth_url(self):
|
||||||
# FIXME(pauloewerton): auth_url should be retrieved from keystone_auth
|
# FIXME(pauloewerton): auth_url should be retrieved from keystone_auth
|
||||||
# section by default
|
# section by default
|
||||||
return CONF[ksconf.CFG_LEGACY_GROUP].www_authenticate_uri.replace(
|
url = CONF[ksconf.CFG_LEGACY_GROUP].www_authenticate_uri or \
|
||||||
'v2.0', 'v3')
|
CONF[ksconf.CFG_LEGACY_GROUP].auth_uri
|
||||||
|
return url.replace('v2.0', 'v3')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def auth_token(self):
|
def auth_token(self):
|
||||||
|
@ -25,8 +25,6 @@ def register_opts(conf):
|
|||||||
ka_loading.register_auth_conf_options(conf, CFG_GROUP)
|
ka_loading.register_auth_conf_options(conf, CFG_GROUP)
|
||||||
ka_loading.register_session_conf_options(conf, CFG_GROUP)
|
ka_loading.register_session_conf_options(conf, CFG_GROUP)
|
||||||
conf.set_default('auth_type', default='password', group=CFG_GROUP)
|
conf.set_default('auth_type', default='password', group=CFG_GROUP)
|
||||||
conf.import_opt('www_authenticate_uri', 'keystonemiddleware.auth_token',
|
|
||||||
group=CFG_LEGACY_GROUP)
|
|
||||||
|
|
||||||
|
|
||||||
def list_opts():
|
def list_opts():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user