/usr/lib/python2.6/site-packages/openstackclient/api
NameSizeModeActions
api.py99690644editdlrm
api.pyc95710644editdlrm
auth.py88550644editdlrm
auth.pyc64350644editdlrm
auth_plugin.py37330644editdlrm
auth_plugin.pyc38670644editdlrm
image_v1.py26450644editdlrm
image_v1.pyc26130644editdlrm
image_v2.py22980644editdlrm
image_v2.pyc20950644editdlrm
network_v2.py17360644editdlrm
network_v2.pyc19290644editdlrm
object_store_v1.py111760644editdlrm
object_store_v1.pyc97020644editdlrm
utils.py31240644editdlrm
utils.pyc20540644editdlrm
__init__.py00644editdlrm
__init__.pyc1630644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstackclient/api/auth_plugin.pyc (3867B)
Ñò ;vVc@s—dZddkZddklZddklZddklZ ddk l Z ei e ƒZde ifd„ƒYZd e ifd „ƒYZdS( sAuthentication Plugin LibraryiÿÿÿÿN(tcfg(tparse(tpassword(ttoken_endpointt TokenEndpointcBs/eZdZd„Zd„Zed„ƒZRS(sÇAuth plugin to handle traditional token/endpoint usage Implements the methods required to handle token authentication with a user-specified token and service endpoint; no Identity calls are made for re-scoping, service catalog lookups or the like. The purpose of this plugin is to get rid of the special-case paths in the code to handle this authentication format. Its primary use is for bootstrapping the Keystone database. cKs#tt|ƒid|d|ƒdS(s›A plugin for static authentication with an existing token :param string url: Service endpoint :param string token: Existing token tendpointttokenN(tsuperRt__init__(tselfturlRtkwargs((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyR'scKsdS(N(tNone(R tsessionR ((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyt get_auth_ref0scCsPtt|ƒiƒ}|itidddƒtiddtddƒgƒ|S(NR thelps Specific service endpoint to useRtsecretsAuthentication token to use(RRt get_optionstextendRtStrOpttTrue(R toptions((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyR4s   (t__name__t __module__t__doc__RRt classmethodR(((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyRs  tOSCGenericPasswordcBseZdZdd„ZRS(sZAuth plugin hack to work around broken Keystone configurations The default Keystone configuration uses http://localhost:xxxx in admin_endpoint and public_endpoint and are returned in the links.href attribute by the version routes. Deployments that do not set these are unusable with newer keystoneclient version discovery. c Cs§ti|ƒ}|iidƒoZti|iƒ}ti|i|i|i|i|i|i fƒ}t i d|ƒnt t |ƒid|d|d|d|ƒS(sÊHandle default Keystone endpoint configuration Build the actual API endpoint from the scheme, host and port of the original auth URL and the rest from the returned version URL. t localhostsVersion URL updated: %sR tversionR t raw_status(turlparsetnetloct startswithtauth_urlt urlunparsetschemetpathtparamstquerytfragmenttLOGtdebugRRt create_plugin(R R RR Rtver_utauth_u((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyR*Ns N(RRRR R*(((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyRDs(Rtloggingt oslo_configRtsix.moves.urllibRRt$keystoneclient.auth.identity.genericRt ksc_passwordtkeystoneclient.authRt getLoggerRR(tTokenRtPasswordR(((sO/tmp/pip-build-cD3xZi/python-openstackclient/openstackclient/api/auth_plugin.pyts )