/usr/lib/python2.6/site-packages/keystoneauth1/identity/v3
NameSizeModeActions
base.py99380644editdlrm
base.pyc100090644editdlrm
federation.py36540644editdlrm
federation.pyc37490644editdlrm
k2k.py76130644editdlrm
k2k.pyc67830644editdlrm
oidc.py115150644editdlrm
oidc.pyc104730644editdlrm
password.py28970644editdlrm
password.pyc28290644editdlrm
token.py19680644editdlrm
token.pyc22660644editdlrm
__init__.py10870644editdlrm
__init__.pyc6470644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneauth1/identity/v3/base.pyc (10009B)
Ñò DVc @sddkZddkZddklZddklZddklZddklZei e ƒZ dddd gZ ei eiƒd eifd „ƒYƒZdefd „ƒYZei eiƒdefd „ƒYƒZei eiƒdefd „ƒYƒZdS(iÿÿÿÿN(t_utils(taccess(t exceptions(tbasetAutht AuthMethodtAuthConstructortBaseAuthc BsneZdZeiƒdddddddeed„ ƒZed„ƒZ e i d„ƒZ ed„ƒZ RS(s¨Identity V3 Authentication Plugin. :param string auth_url: Identity service endpoint for authentication. :param list auth_methods: A collection of methods to authenticate with. :param string trust_id: Trust ID for trust scoping. :param string domain_id: Domain ID for domain scoping. :param string domain_name: Domain name for domain scoping. :param string project_id: Project ID for project scoping. :param string project_name: Project name for project scoping. :param string project_domain_id: Project's domain ID for project. :param string project_domain_name: Project's domain name for project. :param bool reauthenticate: Allow fetching a new token if the current one is going to expire. (optional) default True :param bool include_catalog: Include the service catalog in the returned token. (optional) default True. c Csktt|ƒid|d| ƒ||_||_||_||_||_||_||_ | |_ dS(Ntauth_urltreauthenticate( tsuperRt__init__ttrust_idt domain_idt domain_namet project_idt project_nametproject_domain_idtproject_domain_nametinclude_catalog( tselfRR R RRRRRR R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR .s        cCsd|iidƒS(s4The full URL where we will send authentication data.s%s/auth/tokenst/(Rtrstrip(R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyt token_urlDscKsdS(N(tNone(Rtsessiontkwargs((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyt get_auth_refIscCs/|ip%|ip|ip|ip|iS(s?Does the plugin have parameters that will create a scoped token(R RRRR (R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pythas_scope_parametersMsN(t__name__t __module__t__doc__tutilst positionalRtTrueR tpropertyRtabctabstractmethodRR(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyRs  cBs eZdZd„Zd„ZRS(sŒIdentity V3 Authentication Plugin. :param string auth_url: Identity service endpoint for authentication. :param list auth_methods: A collection of methods to authenticate with. :param string trust_id: Trust ID for trust scoping. :param string domain_id: Domain ID for domain scoping. :param string domain_name: Domain name for domain scoping. :param string project_id: Project ID for project scoping. :param string project_name: Project name for project scoping. :param string project_domain_id: Project's domain ID for project. :param string project_domain_name: Project's domain name for project. :param bool reauthenticate: Allow fetching a new token if the current one is going to expire. (optional) default True :param bool include_catalog: Include the service catalog in the returned token. (optional) default True. :param bool unscoped: Force the return of an unscoped token. This will make the keystone server return an unscoped token even if a default_project_id is set for this user. cKs>|idtƒ|_tt|ƒid||||_dS(NtunscopedR(tpoptFalseR&R RR t auth_methods(RRR)R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR jsc KsEhdd6}hhhd6d6}|dd}h}xU|iD]J}|i|||d|ƒ\}} |idgƒi|ƒ| ||eZdZgZd„Zed„ƒZeid„ƒZ RS(s§One part of a V3 Authentication strategy. V3 Tokens allow multiple methods to be presented when authentication against the server. Each one of these methods is implemented by an AuthMethod. Note: When implementing an AuthMethod use the method_parameters and do not use positional arguments. Otherwise they can't be picked up by the factory method and don't work as well with AuthConstructors. cKsdx-|iD]"}t|||i|dƒƒq W|o)ddi|iƒƒ}t|ƒ‚ndS(NsUnexpected Attributes: %ss, (t_method_parameterstsetattrR'RtjointkeystAttributeError(RRtparamtmsg((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR Ãs   cCs:tg}|iD]}|||i|dƒfq~ƒS(s;Remove parameters related to this method from other kwargs.N(tdictROR'R(tclsRt_[1]tp((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyt_extract_kwargsËs cKsdS(s Return the authentication section of an auth plugin. :param session: The communication session. :type session: keystonauth.session.Session :param Auth auth: The auth plugin calling the method. :param dict headers: The headers that will be sent with the auth request if a plugin needs to add to them. :return: The identifier of this plugin and a dict of authentication data for the auth type. :rtype: tuple(string, dict) N((RRR,R5R((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR<Ñs( RRRROR t classmethodRZR$R%R<(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR´s   cBseZdZdZd„ZRS(s_AuthConstructor is a means of creating an Auth Plugin that contains only one authentication method. This is generally the required usage. An AuthConstructor creates an AuthMethod based on the method's arguments and the auth_method_class defined by the plugin. It then creates the auth plugin with only that authentication method. cOsG|ii|ƒ}|i||Ž}tt|ƒi||g|dS(N(t_auth_method_classRZR RR (RRtargsRt method_kwargsRJ((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyR ìsN(RRRRR\R (((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyRàs(R$tsixt keystoneauth1RR RRtkeystoneauth1.identityRt get_loggerRRBt__all__t add_metaclasstABCMetatBaseIdentityPluginRRtobjectRR(((sE/tmp/pip-build-lt8jXN/keystoneauth1/keystoneauth1/identity/v3/base.pyt s  9_+