diff --git a/src/azure-cli-core/azure/cli/core/auth/identity.py b/src/azure-cli-core/azure/cli/core/auth/identity.py index 5fdcc99e040..6997e6ac3ee 100644 --- a/src/azure-cli-core/azure/cli/core/auth/identity.py +++ b/src/azure-cli-core/azure/cli/core/auth/identity.py @@ -41,10 +41,7 @@ class Identity: # pylint: disable=too-many-instance-attributes - """Class to manage identities: - - user - - service principal - - TODO: managed identity + """Manage user or service principal identities and log into Microsoft identity platform. """ # MSAL token cache. @@ -199,12 +196,6 @@ def login_with_service_principal(self, client_id, credential, scopes): entry = sp_auth.get_entry_to_persist() self._service_principal_store.save_entry(entry) - def login_with_managed_identity(self, scopes, identity_id=None): # pylint: disable=too-many-statements - raise NotImplementedError - - def login_in_cloud_shell(self, scopes): - raise NotImplementedError - def logout_user(self, username): # If username is an SP client ID, it is ignored accounts = self._msal_app.get_accounts(username) @@ -251,9 +242,6 @@ def get_service_principal_credential(self, client_id): client_credential = ServicePrincipalAuth(entry).get_msal_client_credential() return ServicePrincipalCredential(client_id, client_credential, **self._msal_app_kwargs) - def get_managed_identity_credential(self, client_id=None): - raise NotImplementedError - class ServicePrincipalAuth: # pylint: disable=too-many-instance-attributes def __init__(self, entry):