summaryrefslogtreecommitdiff
path: root/keystoneclient/auth
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-06-09 22:23:44 +0000
committerGerrit Code Review <review@openstack.org>2015-06-09 22:23:44 +0000
commit54d5b1a4cabb9902b79dafc879d49b4f2b84fb72 (patch)
treec44e869ffae62c5c613b06c7d3fb83f2efc3f299 /keystoneclient/auth
parent53391c190e742b72b9083c7447fcbc67e2074889 (diff)
parent0ecf9b1ab5177fc42d16b4a57e8522769433b156 (diff)
downloadpython-keystoneclient-54d5b1a4cabb9902b79dafc879d49b4f2b84fb72.tar.gz
Merge "Add get_communication_params interface to plugins"
Diffstat (limited to 'keystoneclient/auth')
-rw-r--r--keystoneclient/auth/base.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/keystoneclient/auth/base.py b/keystoneclient/auth/base.py
index 4d8b840..27faa2a 100644
--- a/keystoneclient/auth/base.py
+++ b/keystoneclient/auth/base.py
@@ -168,6 +168,19 @@ class BaseAuthPlugin(object):
"""
return None
+ def get_connection_params(self, session, **kwargs):
+ """Return any additional connection parameters required for the plugin.
+
+ :param session: The session object that the auth_plugin belongs to.
+ :type session: keystoneclient.session.Session
+
+ :returns: Headers that are set to authenticate a message or None for
+ failure. Note that when checking this value that the empty
+ dict is a valid, non-failure response.
+ :rtype: dict
+ """
+ return {}
+
def invalidate(self):
"""Invalidate the current authentication data.