|
41 | 41 |
|
42 | 42 |
|
43 | 43 | 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. |
48 | 45 | """ |
49 | 46 |
|
50 | 47 | # MSAL token cache. |
@@ -199,12 +196,6 @@ def login_with_service_principal(self, client_id, credential, scopes): |
199 | 196 | entry = sp_auth.get_entry_to_persist() |
200 | 197 | self._service_principal_store.save_entry(entry) |
201 | 198 |
|
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 | | - |
208 | 199 | def logout_user(self, username): |
209 | 200 | # If username is an SP client ID, it is ignored |
210 | 201 | accounts = self._msal_app.get_accounts(username) |
@@ -251,9 +242,6 @@ def get_service_principal_credential(self, client_id): |
251 | 242 | client_credential = ServicePrincipalAuth(entry).get_msal_client_credential() |
252 | 243 | return ServicePrincipalCredential(client_id, client_credential, **self._msal_app_kwargs) |
253 | 244 |
|
254 | | - def get_managed_identity_credential(self, client_id=None): |
255 | | - raise NotImplementedError |
256 | | - |
257 | 245 |
|
258 | 246 | class ServicePrincipalAuth: # pylint: disable=too-many-instance-attributes |
259 | 247 | def __init__(self, entry): |
|
0 commit comments