diff options
author | Jenkins <jenkins@review.openstack.org> | 2015-06-09 22:23:44 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2015-06-09 22:23:44 +0000 |
commit | 54d5b1a4cabb9902b79dafc879d49b4f2b84fb72 (patch) | |
tree | c44e869ffae62c5c613b06c7d3fb83f2efc3f299 /keystoneclient/auth | |
parent | 53391c190e742b72b9083c7447fcbc67e2074889 (diff) | |
parent | 0ecf9b1ab5177fc42d16b4a57e8522769433b156 (diff) | |
download | python-keystoneclient-54d5b1a4cabb9902b79dafc879d49b4f2b84fb72.tar.gz |
Merge "Add get_communication_params interface to plugins"
Diffstat (limited to 'keystoneclient/auth')
-rw-r--r-- | keystoneclient/auth/base.py | 13 |
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. |