Skip to content

Commit 5251c0d

Browse files
committed
identity
1 parent 4387901 commit 5251c0d

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/azure-cli-core/azure/cli/core/auth/identity.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,7 @@
4141

4242

4343
class Identity: # pylint: disable=too-many-instance-attributes
44-
"""Class to manage identities:
45-
- user
46-
- service principal
47-
- TODO: managed identity
44+
"""Manage user or service principal identities and log into Microsoft identity platform.
4845
"""
4946

5047
# MSAL token cache.
@@ -199,12 +196,6 @@ def login_with_service_principal(self, client_id, credential, scopes):
199196
entry = sp_auth.get_entry_to_persist()
200197
self._service_principal_store.save_entry(entry)
201198

202-
def login_with_managed_identity(self, scopes, identity_id=None): # pylint: disable=too-many-statements
203-
raise NotImplementedError
204-
205-
def login_in_cloud_shell(self, scopes):
206-
raise NotImplementedError
207-
208199
def logout_user(self, username):
209200
# If username is an SP client ID, it is ignored
210201
accounts = self._msal_app.get_accounts(username)
@@ -251,9 +242,6 @@ def get_service_principal_credential(self, client_id):
251242
client_credential = ServicePrincipalAuth(entry).get_msal_client_credential()
252243
return ServicePrincipalCredential(client_id, client_credential, **self._msal_app_kwargs)
253244

254-
def get_managed_identity_credential(self, client_id=None):
255-
raise NotImplementedError
256-
257245

258246
class ServicePrincipalAuth: # pylint: disable=too-many-instance-attributes
259247
def __init__(self, entry):

0 commit comments

Comments
 (0)