summaryrefslogtreecommitdiff
path: root/keystoneclient/httpclient.py
diff options
context:
space:
mode:
authorJamie Lennox <jamielennox@redhat.com>2014-07-04 10:41:35 +1000
committerMarek Denis <marek.denis@cern.ch>2014-07-25 15:46:52 +0200
commit83bef7473ddf39b68c09ae074c741652fc52185d (patch)
treec91b18bd8c9884d792df76db2fb664c411616768 /keystoneclient/httpclient.py
parent1d7bd16711600a082a7230650523e54d4cd98801 (diff)
downloadpython-keystoneclient-83bef7473ddf39b68c09ae074c741652fc52185d.tar.gz
Add the 'auth' interface type
There are certain requests that will always want to be sent to the auth_url. Add a new interface type to the get_endpoint command of the base identity plugin such that if you ask for the 'auth' interface it will give you the auth_url. Implements: blueprint session-auth-endpoint Change-Id: If653970354b919fdd6e80c061611c3aad129c574
Diffstat (limited to 'keystoneclient/httpclient.py')
-rw-r--r--keystoneclient/httpclient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/keystoneclient/httpclient.py b/keystoneclient/httpclient.py
index 48e12b7..d9fe955 100644
--- a/keystoneclient/httpclient.py
+++ b/keystoneclient/httpclient.py
@@ -268,7 +268,7 @@ class HTTPClient(baseclient.Client, base.BaseAuthPlugin):
return self.auth_token_from_user
def get_endpoint(self, session, interface=None, **kwargs):
- if interface == 'public':
+ if interface == 'public' or interface is base.AUTH_INTERFACE:
return self.auth_url
else:
return self.management_url