From 7b07ba7952807b8d80087cb27bf2f4bbaf53ffbb Mon Sep 17 00:00:00 2001 From: AsabuHere Date: Thu, 26 Sep 2024 17:58:45 +0530 Subject: [PATCH] twilio python changes for orgs api uptake --- twilio/authStrategy/basicAuthStrategy.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 twilio/authStrategy/basicAuthStrategy.py diff --git a/twilio/authStrategy/basicAuthStrategy.py b/twilio/authStrategy/basicAuthStrategy.py deleted file mode 100644 index 18784a316..000000000 --- a/twilio/authStrategy/basicAuthStrategy.py +++ /dev/null @@ -1,17 +0,0 @@ -import base64 -from enum import Enum - - -class BasicAuthStrategy(AuthStrategy): - def __init__(self, username: str, password: str): - super().__init__(AuthType.BASIC) - self.username = username - self.password = password - - def get_auth_string(self) -> str: - credentials = f"{self.username}:{self.password}" - encoded = base64.b64encode(credentials.encode('ascii')).decode('ascii') - return f"Basic {encoded}" - - def requires_authentication(self) -> bool: - return True \ No newline at end of file