mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 14:15:13 +00:00
Validate token in controller's HTTP handlers
This commit is contained in:
@ -17,7 +17,7 @@ class ControllerResponder:
|
||||
def handle_controller_request(self, stream, msg_parts):
|
||||
key, data = deserialize_all(*msg_parts)
|
||||
response = self.controller_request_handlers[key](data)
|
||||
stream.send_multipart(serialize_all(key, response))
|
||||
stream.send_multipart(serialize_all(self.token, response))
|
||||
|
||||
def handle_test_request(self, data):
|
||||
return 'OK'
|
||||
|
Reference in New Issue
Block a user