From 22428a6fa90f714498cfbb60c9ac73197e04aa9a Mon Sep 17 00:00:00 2001 From: jar3b Date: Fri, 6 Jul 2018 19:33:25 +0300 Subject: [PATCH] Add logging --- drf_uuid_auth/authentication.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drf_uuid_auth/authentication.py b/drf_uuid_auth/authentication.py index 28d4aa0..660f304 100644 --- a/drf_uuid_auth/authentication.py +++ b/drf_uuid_auth/authentication.py @@ -8,7 +8,9 @@ from drf_uuid_auth.settings import api_settings class UuidAuthentication(BaseAuthentication): def authenticate(self, request): + print(api_settings.AUTH_HEADER) header = request.META.get(api_settings.AUTH_HEADER.upper(), None) + print(header) if header is None or header == "" or header == "-": return None