Skip to content

Commit 6dbb2b9

Browse files
authored
Remove custom auth for notebooks (microsoft#682)
* Remove custom auth for notebooks * Fix tests
1 parent c0327b3 commit 6dbb2b9

File tree

6 files changed

+6
-511
lines changed

6 files changed

+6
-511
lines changed

azure-quantum/azure/quantum/_authentication/__init__.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

azure-quantum/azure/quantum/_authentication/_chained.py

Lines changed: 0 additions & 119 deletions
This file was deleted.

azure-quantum/azure/quantum/_authentication/_default.py

Lines changed: 0 additions & 153 deletions
This file was deleted.

azure-quantum/azure/quantum/_authentication/_token.py

Lines changed: 0 additions & 83 deletions
This file was deleted.

azure-quantum/azure/quantum/_workspace_connection_params.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
)
1515
from azure.core.credentials import AzureKeyCredential
1616
from azure.core.pipeline.policies import AzureKeyCredentialPolicy
17-
from azure.quantum._authentication import _DefaultAzureCredential
17+
from azure.identity import DefaultAzureCredential
1818
from azure.quantum._constants import (
1919
EnvironmentKind,
2020
EnvironmentVariables,
@@ -403,13 +403,10 @@ def _merge_connection_params(
403403
def get_credential_or_default(self) -> Any:
404404
"""
405405
Get the credential if one was set,
406-
or defaults to a new _DefaultAzureCredential.
406+
or defaults to a new DefaultAzureCredential.
407407
"""
408408
return (self.credential
409-
or _DefaultAzureCredential(
410-
subscription_id=self.subscription_id,
411-
arm_endpoint=self.arm_endpoint,
412-
tenant_id=self.tenant_id))
409+
or DefaultAzureCredential())
413410

414411
def get_auth_policy(self) -> Any:
415412
"""

0 commit comments

Comments
 (0)