Add logging 2
This commit is contained in:
parent
22428a6fa9
commit
ef0855fad3
@ -9,6 +9,7 @@ from drf_uuid_auth.settings import api_settings
|
||||
class UuidAuthentication(BaseAuthentication):
|
||||
def authenticate(self, request):
|
||||
print(api_settings.AUTH_HEADER)
|
||||
print(request.get_full_path(), request.META.get('REMOTE_ADDR', None))
|
||||
header = request.META.get(api_settings.AUTH_HEADER.upper(), None)
|
||||
print(header)
|
||||
if header is None or header == "" or header == "-":
|
||||
|
Loading…
x
Reference in New Issue
Block a user