/usr/lib/python2.6/site-packages/keystoneauth1
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/plugin.pyc (8305B)
DVc @ s) e Z d Z d e f d YZ d S( s X-Auth-Tokent BaseAuthPluginc B s_ e Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z RS(
s0 The basic structure of an authentication plugin.c K s d S( s8 Obtain a token.
How the token is obtained is up to the plugin. If it is still valid
it may be re-used, retrieved from cache or invoke an authentication
request against a server.
There are no required kwargs. They are passed directly to the auth
plugin and they are implementation specific.
Returning None will indicate that no token was able to be retrieved.
This function is misplaced as it should only be required for auth
plugins that use the 'X-Auth-Token' header. However due to the way
plugins evolved this method is required and often called to trigger an
authentication request on a new plugin.
When implementing a new plugin it is advised that you implement this
method, however if you don't require the 'X-Auth-Token' header override
the `get_headers` method instead.
:param session: A session object so the plugin can make HTTP calls.
:type session: keystonauth.session.Session
:return: A token to use.
:rtype: string
N( t None( t selft sessiont kwargs( ( s; /tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/plugin.pyt get_token s c K s&