From ac7806dea0f2dda793f585ec27f98e98f3d4cfca Mon Sep 17 00:00:00 2001 From: jiasli <4003950+jiasli@users.noreply.github.com> Date: Fri, 1 Nov 2024 17:45:53 +0800 Subject: [PATCH] SystemAssigned --- msal/managed_identity.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/msal/managed_identity.py b/msal/managed_identity.py index bad96a08..ec032ca7 100644 --- a/msal/managed_identity.py +++ b/msal/managed_identity.py @@ -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, ], @@ -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 @@ -648,4 +648,3 @@ def _obtain_token_on_arc(http_client, endpoint, resource): "error": "invalid_request", "error_description": response.text, } -