diff --git a/twilio/auth_strategy/no_auth_strategy.py b/twilio/auth_strategy/no_auth_strategy.py index 8b9324aa2..a5bfd6d27 100644 --- a/twilio/auth_strategy/no_auth_strategy.py +++ b/twilio/auth_strategy/no_auth_strategy.py @@ -1,4 +1,5 @@ from auth_type import AuthType +from twilio.auth_strategy.auth_strategy import AuthStrategy class NoAuthStrategy(AuthStrategy): diff --git a/twilio/base/client_base.py b/twilio/base/client_base.py index 2adfb59a6..b0205804f 100644 --- a/twilio/base/client_base.py +++ b/twilio/base/client_base.py @@ -90,8 +90,6 @@ def request( """ headers = self.get_headers(method, headers) - ##If credential provider is provided by user, get the associated auth strategy - ##Using the auth strategy, fetch the auth string and set it to authorization header if self.credential_provider: auth_strategy = self.credential_provider.to_auth_strategy() @@ -153,9 +151,6 @@ async def request_async( if method == 'DELETE': del headers["Accept"] - ##If credential provider is provided by user, get the associated auth strategy - ##Using the auth strategy, fetch the auth string and set it to authorization header - if self.credential_provider: auth_strategy = self.credential_provider.to_auth_strategy() headers["Authorization"] = auth_strategy.get_auth_string() diff --git a/twilio/base/version.py b/twilio/base/version.py index 574eee7b5..ed7e86f49 100644 --- a/twilio/base/version.py +++ b/twilio/base/version.py @@ -164,9 +164,6 @@ async def fetch_async( timeout=timeout, allow_redirects=allow_redirects, ) - - - return self._parse_fetch(method, uri, response) def _parse_update(self, method: str, uri: str, response: Response) -> Any: