api: remove authentication fallback for pre-0.12 proxies
This commit is contained in:
parent
6bfd465855
commit
4e12003944
|
@ -25,10 +25,7 @@ def token_from_header(raw_header: bytes) -> Optional[Token]:
|
||||||
try:
|
try:
|
||||||
auth_credentials = b64decode(auth_credentials.encode()).decode()
|
auth_credentials = b64decode(auth_credentials.encode()).decode()
|
||||||
except UnicodeDecodeError:
|
except UnicodeDecodeError:
|
||||||
# TODO: Remove this workaround
|
return None
|
||||||
# temporary fallback for 0.11 to 0.12 upgrade
|
|
||||||
# 0.11 and below proxy sends authorization header not base64 encoded
|
|
||||||
pass
|
|
||||||
# Accept credentials with username and without
|
# Accept credentials with username and without
|
||||||
if ":" in auth_credentials:
|
if ":" in auth_credentials:
|
||||||
_, password = auth_credentials.split(":")
|
_, password = auth_credentials.split(":")
|
||||||
|
|
Reference in New Issue