Fixed an issue where users would not be able to authenticate in Azure on Linux platforms. Fixes #7495

This commit is contained in:
Yogesh Mahajan
2022-06-23 18:19:32 +05:30
committed by Akshay Joshi
parent e95eb14651
commit 23869cd61f
11 changed files with 86 additions and 192 deletions

View File

@@ -288,13 +288,17 @@ class Azure:
_credential = InteractiveBrowserCredential(
tenant_id=self._tenant_id,
timeout=180,
cache_persistence_options=TokenCachePersistenceOptions(),
cache_persistence_options=TokenCachePersistenceOptions(
allow_unencrypted_storage=True
),
authentication_record=deserialized_auth_record)
else:
_credential = InteractiveBrowserCredential(
tenant_id=self._tenant_id,
timeout=180,
cache_persistence_options=TokenCachePersistenceOptions())
cache_persistence_options=TokenCachePersistenceOptions(
allow_unencrypted_storage=True)
)
return _credential
def _get_azure_client(self, type):