mirror of
https://github.com/FAUSheppy/atlantis-event-dispatcher
synced 2025-12-06 06:21:36 +01:00
add: header token auth
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user