Skip to content

Commit

Permalink
SystemAssigned
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored and rayluo committed Nov 21, 2024
1 parent ec3c500 commit 1d85e8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions msal/managed_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def __init__(
self,
managed_identity: Union[
dict,
ManagedIdentity, # Could use Type[ManagedIdentity] but it is deprecatred in Python 3.9+
ManagedIdentity, # Could use Type[ManagedIdentity] but it is deprecated in Python 3.9+
SystemAssignedManagedIdentity,
UserAssignedManagedIdentity,
],
Expand Down Expand Up @@ -206,7 +206,7 @@ def __init__(
you may use an environment variable (such as MY_MANAGED_IDENTITY_CONFIG)
to store a json blob like
``{"ManagedIdentityIdType": "ClientId", "Id": "foo"}`` or
``{"ManagedIdentityIdType": "SystemAssignedManagedIdentity", "Id": null})``.
``{"ManagedIdentityIdType": "SystemAssigned", "Id": null}``.
The following app can load managed identity configuration dynamically::
import json, os, msal, requests
Expand Down Expand Up @@ -648,4 +648,3 @@ def _obtain_token_on_arc(http_client, endpoint, resource):
"error": "invalid_request",
"error_description": response.text,
}

0 comments on commit 1d85e8a

Please sign in to comment.