The /hook route should not require token authentication - authentication is up to the hook implementation
This commit is contained in:
parent
076cc6a63e
commit
a5f02c6a30
1 changed files with 1 additions and 3 deletions
|
@ -3,8 +3,7 @@ import json
|
||||||
from flask import Blueprint, abort, request, Response
|
from flask import Blueprint, abort, request, Response
|
||||||
|
|
||||||
from platypush.backend.http.app import template_folder
|
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
|
from platypush.message.event.http.hook import WebhookEvent
|
||||||
|
|
||||||
|
|
||||||
|
@ -17,7 +16,6 @@ __routes__ = [
|
||||||
|
|
||||||
|
|
||||||
@hook.route('/hook/<hook_name>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
|
@hook.route('/hook/<hook_name>', methods=['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'OPTIONS'])
|
||||||
@authenticate(skip_auth_methods=['session'])
|
|
||||||
def _hook(hook_name):
|
def _hook(hook_name):
|
||||||
""" Endpoint for custom webhooks """
|
""" Endpoint for custom webhooks """
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue