Package ZenHub :: Module zenhub :: Class AuthXmlRpcService
[hide private]
[frames] | no frames]

Class AuthXmlRpcService

source code

twisted.web.resource.Resource --+        
                                |        
        twisted.web.xmlrpc.XMLRPC --+    
                                    |    
          XmlRpcService.XmlRpcService --+
                                        |
                                       AuthXmlRpcService

Provide some level of authentication for XML/RPC calls

Nested Classes [hide private]

Inherited from twisted.web.resource.Resource: entityType

Instance Methods [hide private]
 
__init__(self, dmd, checker) source code
 
doRender(self, avatar, request)
Call the inherited render engine after authentication succeeds.
source code
 
unauthorized(self, request)
Render an XMLRPC error indicating an authentication failure.
source code
 
render(self, request)
Unpack the authorization header and check the credentials.
source code

Inherited from XmlRpcService.XmlRpcService: xmlrpc_applyDataMap, xmlrpc_getConfigs, xmlrpc_getDevicePingIssues, xmlrpc_getDeviceWinInfo, xmlrpc_getPerformanceConfig, xmlrpc_getWinServices, xmlrpc_getWmiConnIssues, xmlrpc_sendEvent, xmlrpc_sendEvents, xmlrpc_writeRRD

Inherited from twisted.web.xmlrpc.XMLRPC: getSubHandler, getSubHandlerPrefixes, putSubHandler

Inherited from twisted.web.xmlrpc.XMLRPC (private): _cbRender, _ebRender, _getFunction, _listFunctions

Inherited from twisted.web.resource.Resource: __providedBy__, delEntity, getChild, getChildForRequest, getChildWithDefault, getDynamicEntity, getStaticEntity, listDynamicEntities, listDynamicNames, listEntities, listNames, listStaticEntities, listStaticNames, putChild, reallyPutEntity, render_HEAD

Class Variables [hide private]

Inherited from XmlRpcService.XmlRpcService: PRIMITIVES

Inherited from twisted.web.xmlrpc.XMLRPC: FAILURE, NOT_FOUND, isLeaf, separator

Inherited from twisted.web.resource.Resource: __implemented__, __provides__, server

Method Details [hide private]

__init__(self, dmd, checker)
(Constructor)

source code 
Overrides: XmlRpcService.XmlRpcService.__init__

doRender(self, avatar, request)

source code 
Call the inherited render engine after authentication succeeds. See @XmlRpcService.XmlRpcService.Render.

unauthorized(self, request)

source code 
Render an XMLRPC error indicating an authentication failure.
Parameters:
  • request (HTTPRequest) - the request for this xmlrpc call.
Returns:
None

render(self, request)

source code 
Unpack the authorization header and check the credentials.
Parameters:
  • request (HTTPRequest) - the request for this xmlrpc call.
Returns:
NOT_DONE_YET
Overrides: twisted.web.xmlrpc.XMLRPC.render