From a5f02c6a3085f410d4ef270f250242deb8633e5c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 24 Feb 2021 22:21:01 +0100 Subject: [PATCH] The /hook route should not require token authentication - authentication is up to the hook implementation --- platypush/backend/http/app/routes/hook.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platypush/backend/http/app/routes/hook.py b/platypush/backend/http/app/routes/hook.py index f9a41b4033..6c47d62ea0 100644 --- a/platypush/backend/http/app/routes/hook.py +++ b/platypush/backend/http/app/routes/hook.py @@ -3,8 +3,7 @@ import json from flask import Blueprint, abort, request, Response from platypush.backend.http.app import template_folder -from platypush.backend.http.app.utils import authenticate, logger, send_message - +from platypush.backend.http.app.utils import logger, send_message from platypush.message.event.http.hook import WebhookEvent @@ -17,7 +16,6 @@ __routes__ = [ @hook.route('/hook/', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS']) -@authenticate(skip_auth_methods=['session']) def _hook(hook_name): """ Endpoint for custom webhooks """