From 4e120039447bf3a8981ef21ffeb503f7be1a1392 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 26 Oct 2020 11:00:19 +0100 Subject: [PATCH] api: remove authentication fallback for pre-0.12 proxies --- passbook/api/auth.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/passbook/api/auth.py b/passbook/api/auth.py index fbc370605..e1e1007f9 100644 --- a/passbook/api/auth.py +++ b/passbook/api/auth.py @@ -25,10 +25,7 @@ def token_from_header(raw_header: bytes) -> Optional[Token]: try: auth_credentials = b64decode(auth_credentials.encode()).decode() except UnicodeDecodeError: - # TODO: Remove this workaround - # temporary fallback for 0.11 to 0.12 upgrade - # 0.11 and below proxy sends authorization header not base64 encoded - pass + return None # Accept credentials with username and without if ":" in auth_credentials: _, password = auth_credentials.split(":")