diff options
| author | Jamie Lennox <jamielennox@redhat.com> | 2014-12-11 11:24:52 +1000 |
|---|---|---|
| committer | Jamie Lennox <jamielennox@redhat.com> | 2015-02-02 10:48:01 +1100 |
| commit | cd552374ca8eaa315ec54fe8f586ec8c69a69c74 (patch) | |
| tree | 0093f460eda1bb25d4c49ed23a5e8b2889f1728c /keystoneclient/auth/__init__.py | |
| parent | bf99f4c1efd8b79d6a8b77c774f761f7ec755c52 (diff) | |
| download | python-keystoneclient-cd552374ca8eaa315ec54fe8f586ec8c69a69c74.tar.gz | |
Add get_headers interface to authentication plugins
The current scheme of having auth plugins only able to specify the
X-Auth-Token header via the get_token function is too limited for all
plugins. We need to allow both the case where the plugin wants to
control additional headers, or doesn't set the X-Auth-Token header at
all.
This deprecates the get_token interface in favour of the get_headers
interface. Whilst we should promote using get_headers it is likely that
plugins that only require setting the X-Auth-Token header will continue
to only support the get_token interface.
Change-Id: Ibd750d72acc3ba4fd8a880cad69173248ec4092f
blueprint: generic-plugins
Diffstat (limited to 'keystoneclient/auth/__init__.py')
| -rw-r--r-- | keystoneclient/auth/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/keystoneclient/auth/__init__.py b/keystoneclient/auth/__init__.py index 9324207..463bcef 100644 --- a/keystoneclient/auth/__init__.py +++ b/keystoneclient/auth/__init__.py @@ -21,6 +21,7 @@ __all__ = [ 'AUTH_INTERFACE', 'BaseAuthPlugin', 'get_plugin_class', + 'IDENTITY_AUTH_HEADER_NAME', 'PLUGIN_NAMESPACE', # auth.cli |
