Repository URL to install this package:
Version:
3.4.44 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
keystoneclient
/
auth
/
identity
/
base.pyc
|
---|
ó ӍEYc @ sÓ d d l Z d d l Z d d l Z d d l Z d d l m Z d d l m Z d d l Z d d l m Z d d l m Z d d l m Z e j e Z d Z e j e j d e j f d Y Z d S( iÿÿÿÿN( t cfg( t positional( t _discover( t base( t exceptionsc C s t j d d d g S( Ns auth-urlt helps Authentication URL( R t StrOpt( ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyt get_options s t BaseIdentityPluginc B s1 e Z d Z d d d d d e d Z e d Z e j d Z e d Z e j d Z e d Z e j d Z e d Z e j d Z e j d Z d Z d Z d Z d Z d d d d d d Z d Z d Z e d d Z e d Z RS( ix c C s~ t t | j t j d t | | _ d | _ | | _ i | _ t j | _ | | _ | | _ | | _ | | _ d S( Ns keystoneclient auth plugins are deprecated as of the 2.1.0 release in favor of keystoneauth1 plugins. They will be removed in future releases.( t superR t __init__t warningst warnt DeprecationWarningt auth_urlt Nonet auth_reft reauthenticatet _endpoint_cachet threadingt Lockt _lockt _usernamet _passwordt _tokent _trust_id( t selfR t usernamet passwordt tokent trust_idR ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR * s c C s t j d t | j S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW username is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.( R R R R ( R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR E s c C s t j d t | | _ d S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW username is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.N( R R R R ( R t value( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR Q s c C s t j d t | j S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW password is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.( R R R R ( R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR ] s c C s t j d t | | _ d S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW password is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.N( R R R R ( R R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR i s c C s t j d t | j S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sT token is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.( R R R R ( R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR u s c C s t j d t | | _ d S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sT token is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.N( R R R R ( R R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR s c C s t j d t | j S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW trust_id is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.( R R R R ( R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR s c C s t j d t | | _ d S( s] Deprecated as of the 1.7.0 release. It may be removed in the 2.0.0 release. sW trust_id is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release.N( R R R R ( R R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyR s c K s d S( su Obtain a token from an OpenStack Identity Service. This method is overridden by the various token version plugins. This method should not be called independently and is expected to be invoked via the do_authenticate() method. This method will be invoked if the AccessInfo object cached by the plugin is not valid. Thus plugins should always fetch a new AccessInfo when invoked. If you are looking to just retrieve the current auth data then you should use get_access(). :param session: A session object that can be used for communication. :type session: keystoneclient.session.Session :raises keystoneclient.exceptions.InvalidResponse: The response returned wasn't appropriate. :raises keystoneclient.exceptions.HttpError: An error from an invalid HTTP response. :returns: Token access information. :rtype: :py:class:`keystoneclient.access.AccessInfo` N( ( R t sessiont kwargs( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyt get_auth_ref¥ s c K s | j | j S( s» Return a valid auth token. If a valid token is not present then a new one will be fetched. :param session: A session object that can be used for communication. :type session: keystoneclient.session.Session :raises keystoneclient.exceptions.HttpError: An error from an invalid HTTP response. :return: A valid token. :rtype: string ( t get_accesst auth_token( R R R! ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyt get_tokenÁ s c C s7 | j s t S| j s t S| j j | j r3 t St S( sÕ Return if the existing token needs to be re-authenticated. The token should be refreshed if it is about to expire. :returns: True if the plugin should fetch a new token. False otherwise. ( R t TrueR t Falset will_expire_soont MIN_TOKEN_LIFE_SECONDS( R ( ( sV /home/tvault/.virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/base.pyt _needs_reauthenticateÑ s c K s8 | j &