mxcubecore.HardwareObjects.SecureXMLRpcRequestHandler#
Secure XML RPC request handler for workflow execution based on tokens. Inspired from this code: http://code.activestate.com/recipes/496786-simple-xml-rpc-server-over-https
Classes
|
Secure XML-RPC request handler class. |
- class mxcubecore.HardwareObjects.SecureXMLRpcRequestHandler.SecureXMLRpcRequestHandler(request, client_address, server)[source]#
Bases:
SimpleXMLRPCRequestHandler
Secure XML-RPC request handler class.
It it very similar to SimpleXMLRPCRequestHandler but it checks for a “Token” entry in the header. If this token doesn’t correspond to a reference token the server sends a “401” (Unauthorized) reply.