Debug removed
This commit is contained in:
parent
452e948bc1
commit
4803128b7a
@ -8,16 +8,12 @@ from drf_uuid_auth.settings import api_settings
|
|||||||
|
|
||||||
class UuidAuthentication(BaseAuthentication):
|
class UuidAuthentication(BaseAuthentication):
|
||||||
def authenticate(self, request):
|
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)
|
header = request.META.get(api_settings.AUTH_HEADER.upper(), None)
|
||||||
print(header)
|
|
||||||
if header is None or header == "" or header == "-":
|
if header is None or header == "" or header == "-":
|
||||||
return None
|
return None
|
||||||
|
|
||||||
payload = header
|
payload = header
|
||||||
user = self.authenticate_credentials(payload)
|
user = self.authenticate_credentials(payload)
|
||||||
print(user)
|
|
||||||
return user, payload
|
return user, payload
|
||||||
|
|
||||||
def authenticate_credentials(self, payload):
|
def authenticate_credentials(self, payload):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user