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

@@ -1,9 +1,11 @@
from __future__ import absolute_import
from contextlib import contextmanager
from typing import cast, Any, Callable, Generator, Iterable, Tuple, Sized, Union, Optional
from django.test import TestCase
from django.template import loader
from django.http import HttpResponse
from django.utils.translation import ugettext as _
from zerver.lib.initial_password import initial_password
from zerver.lib.db import TimeTrackingCursor
@@ -33,6 +35,9 @@ from zerver.models import (
UserProfile,
)
from zerver.lib.request import JsonableError
import base64
import os
import re