fix validate credentials

This commit is contained in:
Cayo Puigdefabregas 2023-11-29 11:42:20 +01:00
parent c4fa16107c
commit f0bb7182bb

View file

@ -32,7 +32,7 @@ class VerifyView(View):
auth_header = request.headers.get('Authorization', b'')
auth_data = auth_header.split()
if len(auth_data) == 2 and auth_data[0].lower() == b'basic':
if len(auth_data) == 2 and auth_data[0].lower() == 'basic':
decoded_auth = base64.b64decode(auth_data[1]).decode('utf-8')
client_id, client_secret = decoded_auth.split(':', 1)
org_url = request.GET.get('demand_uri')