From f0bb7182bb2b1c352b5743aeb7f165ab2c2dba8a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Wed, 29 Nov 2023 11:42:20 +0100 Subject: [PATCH] fix validate credentials --- oidc4vp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oidc4vp/views.py b/oidc4vp/views.py index 7e8ce0e..667b4cb 100644 --- a/oidc4vp/views.py +++ b/oidc4vp/views.py @@ -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')