in src/azstoragetorch/_client.py [0:0]
def _get_sdk_client_kwargs(self, resource_url: str) -> SDKKwargsType:
kwargs: SDKKwargsType = {
"connection_data_block_size": self._CONNECTION_DATA_BLOCK_SIZE,
"transport": self._transport,
"user_agent": f"azstoragetorch/{__version__}",
}
credential = self._sdk_credential
if self._url_has_sas_token(resource_url):
# The SDK prefers the explict credential over the one in the URL. So if a SAS token is
# in the URL, we do not want the factory to automatically inject its credential, especially
# if it would have been the default credential.
credential = None
kwargs["credential"] = credential
return kwargs