RUN cd /byro && pip3 install -e .
RUN cd /byro && /bin/zsh install_local_plugins.sh
-CMD ["/bin/bash"]
+CMD ["runserver", "0.0.0.0:8020"]
WORKDIR /byro
-ENTRYPOINT ["python3","manage.py","runserver"]
+ENTRYPOINT ["/usr/bin/env", "python3", "manage.py"]
self.datetime = now()
self.auth_data = {
- "hash_ver": 1,
+ "hash_ver": 2,
"nonce": base64.b64encode(hdd_nonce).decode("us-ascii"),
"data_mac": "blake2b:{}".format(hdd_mac.decode("us-ascii")),
"orig_content_type": "{}.{}".format(
def get_authenticated_dict(self):
return {
- "object_id": self.object_id,
+ "object_id": str(self.object_id)
+ if not isinstance(self.object_id, (int, str)) else self.object_id,
"datetime": self.datetime.isoformat(),
"action_type": self.action_type,
"prev_hash": self.auth_prev_id
}
def verify(self):
- if self.auth_data["hash_ver"] != 1:
+ if self.auth_data["hash_ver"] not in (1, 2):
return False
if (