Add is_webhook option to authentication decorats.

Modified:
authenticated_rest_api_view
authenticated_api_view and validate_api_key.
This commit is contained in:
Tomasz Kolek
2016-05-18 20:35:35 +02:00
committed by Tim Abbott
parent 80d92c1651
commit 9ae68ade8b
12 changed files with 179 additions and 64 deletions

View File

@@ -122,7 +122,7 @@ def api_github_v2(user_profile, event, payload, branches, default_stream, commit
return target_stream, subject, content
@authenticated_api_view
@authenticated_api_view(is_webhook=True)
@has_request_variables
def api_github_landing(request, user_profile, event=REQ(),
payload=REQ(validator=check_dict([])),