From 53e6f32a1864c0690251caac5e4a67427c366324 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Thu, 5 Jun 2025 20:59:01 +0200 Subject: [PATCH] add: header token auth --- server/interface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/interface.py b/server/interface.py index 89cabcf..f8487a9 100755 --- a/server/interface.py +++ b/server/interface.py @@ -389,6 +389,9 @@ def smart_send_to_clients(path=None): # authenticated by access token or webhook path # dispatch_acces_token = flask.request.args.get("dispatch-access-token") or "" + if not dispatch_acces_token: + dispatch_acces_token = flask.request.headers.get("Dispatcher-Token") or "" + print(path) if path: webhook_path = db.session.query(WebHookPaths).filter(WebHookPaths.path==path).first()