Exemplo n.º 1
0
 def generateNewToken(self):
     # See: https://wyattbaldwin.com/2014/01/09/generating-random-tokens-in-python/
     self._token = binascii.hexlify(os.urandom(5)).decode('utf-8')
     SecureXMLRpcRequestHandler.setReferenceToken(self._token)
Exemplo n.º 2
0
 def setToken(self, token):
     SecureXMLRpcRequestHandler.setReferenceToken(token)