/usr/lib/python2.6/site-packages/keystoneclient
NameSizeModeActions
apiclient/-0755rm
auth/-0755rm
common/-0755rm
contrib/-0755rm
fixture/-0755rm
generic/-0755rm
hacking/-0755rm
locale/-0755rm
middleware/-0755rm
openstack/-0755rm
tests/-0755rm
v2_0/-0755rm
v3/-0755rm
access.py247750644editdlrm
access.pyc331160644editdlrm
adapter.py84010644editdlrm
adapter.pyc91980644editdlrm
base.py179510644editdlrm
base.pyc207410644editdlrm
baseclient.py13130644editdlrm
baseclient.pyc21330644editdlrm
client.py29130644editdlrm
client.pyc29130644editdlrm
discover.py160230644editdlrm
discover.pyc162010644editdlrm
exceptions.py149840644editdlrm
exceptions.pyc243890644editdlrm
httpclient.py385470644editdlrm
httpclient.pyc332640644editdlrm
i18n.py11620644editdlrm
i18n.pyc5580644editdlrm
service_catalog.py166100644editdlrm
service_catalog.pyc150700644editdlrm
session.py406950644editdlrm
session.pyc358510644editdlrm
shell.py195880644editdlrm
shell.pyc148680644editdlrm
utils.py115890644editdlrm
utils.pyc127330644editdlrm
_discover.py111260644editdlrm
_discover.pyc109290644editdlrm
__init__.py24350644editdlrm
__init__.pyc19940644editdlrm
Edit: /usr/lib/python2.6/site-packages/keystoneclient/httpclient.pyc (33264B)
Ñò RBRR3R4R5RR6R7Rt auth_urlstmanagement_urlsR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRUøsÒ                                               cKs|iS(N(RH(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt get_token›scCsa|io|iS|io/|ii|iƒo|iƒn|iiS|io|iSdS(N(RNREtwill_expire_soonR_t authenticateRHRI(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRHžs    cKs0|djp|tijo|iS|iSdS(NR.(R tAUTH_INTERFACER?tmanagement_url(RRR4R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt get_endpoint©scKs |iiS(N(RER (RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt get_user_id¯scKs |iiS(N(RER((RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytget_project_id²scCs ||_dS(s¬Override the auth_token. If an application sets auth_token explicitly then it will always be used and override any past or future retrieved token. N(RN(Rtvalue((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRHµscCsd|_d|_dS(N(R"RNRI(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRH¾s cCs |iiS(s&Returns this client's service catalog.(RERF(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRFÃscCs|io |iiƒS(s7Returns True if this client provides a service catalog.(RERJ(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRJÈscCstidtƒ|iS(sÛProvide read-only backwards compatibility for tenant_id. .. warning:: This is deprecated as of the 1.7.0 release in favor of project_id and may be removed in the 2.0.0 release. sotenant_id is deprecated as of the 1.7.0 release in favor of project_id and may be removed in the 2.0.0 release.(RORPRQR((R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyR'Ìs cCstidtƒ|iS(sßProvide read-only backwards compatibility for tenant_name. .. warning:: This is deprecated as of the 1.7.0 release in favor of project_name and may be removed in the 2.0.0 release. sstenant_name is deprecated as of the 1.7.0 release in favor of project_name and may be removed in the 2.0.0 release.(RORPRQR&(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyR%Ýs cCsx|p|i}|p|i}|p|i}|p|i}| p|i} | p|i} | p|i} |p|i}| p|p|i} | p|p|i } |p|i }|p|i }|p|i }|p |i i}|pF|i}| o1|io'|ii|iƒ o|ii}q>nh |d6|d6|d6| d6| d6| d6|d6| d6| d 6|d 6|d 6|d 6|d 6}|i|\}}t}|djp |iort}||d<|i|}t|tiƒo ||_ntii|Œ|_|o||ii_qLn ||_|i d|ƒ|o|i!|ƒntS(sAuthenticate user. Uses the data provided at instantiation to authenticate against the Identity server. This may use either a username and password or token for authentication. If a tenant name or id was provided then the resulting authenticated client will be scoped to that tenant and contain a service catalog of available endpoints. With the v2.0 API, if a tenant name or ID is not provided, the authentication token returned will be 'unscoped' and limited in capabilities until a fully-scoped token is acquired. With the v3 API, if a domain name or id was provided then the resulting authenticated client will be scoped to that domain. If a project name or ID is not provided, and the authenticating user has a default project configured, the authentication token returned will be 'scoped' to the default project. Otherwise, the authentication token returned will be 'unscoped' and limited in capabilities until a fully-scoped token is acquired. With the v3 API, with the OS-TRUST extension enabled, the trust_id can be provided to allow project-specific role delegation between users If successful, sets the self.auth_ref and self.auth_token with the returned token. If not already set, will also set self.management_url from the details provided in the token. :returns: ``True`` if authentication was successful. :raises keystoneclient.exceptions.AuthorizationFailure: if unable to authenticate or validate the existing authorization token :raises keystoneclient.exceptions.ValueError: if insufficient parameters are used. If keyring is used, token is retrieved from keyring instead. Authentication will only be necessary if any of the following conditions are met: * keyring is not used * if token is not found in keyring * if token retrieved from keyring is expired or about to expired (as determined by stale_duration) * if force_new_token is true R?R R8R9R:R;R<R(R&R=R>RbRBRLR/N("R?R R8RLR9R:R;R<R(R&R=R>RBRYR/RIRERgR_RHtget_auth_ref_from_keyringtFalseR"R]tTruet#get_raw_token_from_identity_servicet isinstanceRRCRDRFRKt process_tokentstore_auth_ref_into_keyring(RR8RLR%R'R?RbR R<R;R&R(R9R:R=R>RBR/Rt keyring_keyREtnew_token_neededtresp((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRhîsb4     cKs9dig}t|ƒD]}|||pdq~ƒS(s®Create a unique key for keyring. Used to store and retrieve auth_ref from keyring. Returns a slash-separated string of values ordered by key name. R1t?(tjointsorted(RRt_[1]tk((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt_build_keyring_keyascKs´d}d}|io”|i|}yMtid|ƒ}|o0ti|ƒ}|i|iƒo d}qqnWqªt j o%}d}t i t dƒ|ƒqªXn||fS(s8Retrieve auth_ref from keyring. If auth_ref is found in keyring, (keyring_key, auth_ref) is returned. Otherwise, (keyring_key, None) is returned. :returns: (keyring_key, auth_ref) or (keyring_key, None) :returns: or (None, None) if use_keyring is not set in the object tkeystoneclient_auths(Unable to retrieve token from keyring %sN( R"R\R~Rt get_passwordtpickletloadsRgR_t ExceptionRZR[R (RRRvREte((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRoks    cCsc|ioUy#tid|ti|iƒƒWq_tj o}tit dƒ|ƒq_XndS(s&Store auth_ref into keyring. Rs%Failed to store token into keyring %sN( R\Rt set_passwordRtdumpsRERƒRZR[R (RRvR„((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRu‡s  c CsHy+|iiiddddd|ƒ|_Wntij onXdS(NR+R,R-R*R/(RERFturl_forRAR tEndpointNotFound(RR/((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt_process_management_url”scCsÈ|iioU|iiptitdƒƒ‚n|i|ƒ|ii|_|ii|_ n|ii ptitdƒƒ‚n|ii |_ |ii |_ |ii|_ |ii |_dS(syExtract and process information from the new auth_ref. And set the relevant authentication information. sToken didn't provide tenant_idsToken didn't provide user_idN(REtproject_scopedR'R tAuthorizationFailureR R‰R%R&R(R R;tauth_domain_idtauth_tenant_idt auth_user_id(RR/((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRts    cCs|ip|iS(N(R@RA(R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRj·scCs ||_dS(N(R@(RRn((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRj»scCs t‚dS(sŽAuthenticate against the Identity API and get a token. Not implemented here because auth protocols should be API version-specific. Expected to authenticate or validate an existing authentication reference already associated with the client. Invoking this call *always* makes a call to the Identity service. :returns: (``resp``, ``body``) N(tNotImplementedError(RR?R8RLR%R'RbR R9R:R;R<R(R&R=R>RB((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRrÂscCs ti|ƒS(N(RR†(Rtentity((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt serializeÛscOs|i||ŽS(sûSend an http request with the specified characteristics. Wrapper around requests.request to handle tasks such as setting headers, JSON encoding/decoding, and error handling. .. warning:: *DEPRECATED*: This function is no longer used. It was designed to be used only by the managers and the managers now receive an adapter so this function is no longer on the standard request path. This may be removed in the 2.0.0 release. (t_request(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyRÞscOs#|idtƒ|ii||ŽS(Nt authenticated(t setdefaultRpRYR(RRR((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyR’îscKsP|p&|idhƒ}|iddƒn|iddƒ|i|||S(sªMakes an authenticated request to keystone endpoint by concatenating self.management_url and url and passing in method and any associated kwargs. tendpoint_filterR4R.R“N(R”R"R’(Rturltmethodt managementRR•((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt _cs_requestòs cKs|i|d|S(sPerform an authenticated GET request. This calls :py:meth:`.request()` with ``method`` set to ``GET`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tGET(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytgetþscKs|i|d|S(sPerform an authenticated HEAD request. This calls :py:meth:`.request()` with ``method`` set to ``HEAD`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tHEAD(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytheadscKs|i|d|S(sPerform an authenticate POST request. This calls :py:meth:`.request()` with ``method`` set to ``POST`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tPOST(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytpost scKs|i|d|S(sPerform an authenticate PUT request. This calls :py:meth:`.request()` with ``method`` set to ``PUT`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tPUT(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytput1scKs|i|d|S(sPerform an authenticate PATCH request. This calls :py:meth:`.request()` with ``method`` set to ``PATCH`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tPATCH(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytpatchBscKs|i|d|S(sPerform an authenticate DELETE request. This calls :py:meth:`.request()` with ``method`` set to ``DELETE`` and an authentication token if one is available. .. warning:: *DEPRECATED*: This function is no longer used and is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release. It was designed to be used by the managers and the managers now receive an adapter so this function is no longer on the standard request path. tDELETE(R™(RR–R((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytdeleteSst original_iptcertttimeouttverifyt verify_certR/c Cs¾y|i|}Wntj on-Xtid|tƒt|i|p|ƒSy|i|}Wntj on-Xtid|tƒt|i|p|ƒSt t dƒ|ƒ‚dS(NseThe %s session variable is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 releaseseThe %s adapter variable is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 releasesUnknown Attribute: %s( tdeprecated_session_variablestKeyErrorRORPRQtgetattrRtdeprecated_adapter_variablesRYR!R (Rtnametvar_name((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyt __getattr__ks&c CsÁy|i|}Wntj on-Xtid|tƒt|i|p|ƒSy|i|}Wntj on-Xtid|tƒt|i|p|ƒSt t |ƒi ||ƒdS(NseThe %s session variable is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 releaseseThe %s adapter variable is deprecated as of the 1.7.0 release and may be removed in the 2.0.0 release( R«R¬RORPRQtsetattrRR®RYRTR$t __setattr__(RR¯tvalR°((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyR³„s&N(2RRRR"RRt renamed_kwargRt positionaltWARNRpt USER_AGENTRURfR#RHRkRlRmtsettertdeleterRFRJR'R%RhR~RoRuR‰RtRjRrR‘RtremoveRR’RqR™R›RRŸR¡R£R¥R«R®R±R³(((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pyR$˜sŽ\        •          l   !  !!!!!!    (6RtloggingROt debtcollectorRRtoslo_serializationRt pkg_resourcesRtsix.moves.urllibRturlparseRt parse_versiontget_distributionRt keyring_vt keyring_mint keyring_badRR"t ImportErrortDistributionNotFoundthasattrtcgiRtkeystoneclientRRRtkeystoneclient.authR R R tkeystoneclient.i18nR R RRRt getLoggerRRZR¸R»RtobjectRtLegacyJsonAdapterRtClienttBaseAuthPluginR$(((sH/tmp/pip-build-cD3xZi/python-keystoneclient/keystoneclient/httpclient.pytsN          -