Skip to content

Commit 53083ca

Browse files
committed
Update deprecated TokenCache API usage
There was a place in `ManagedIdentityClient` where the `TokenCache.find` method was still being used, leading to some deprecation warnings being printed. This updates that to use `TokenCache.search`. Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
1 parent 30dce4e commit 53083ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msal/managed_identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def acquire_token_for_client(
283283
ManagedIdentity.ID, "SYSTEM_ASSIGNED_MANAGED_IDENTITY")
284284
now = time.time()
285285
if not claims_challenge: # Then attempt token cache search
286-
matches = self._token_cache.find(
286+
matches = self._token_cache.search(
287287
self._token_cache.CredentialType.ACCESS_TOKEN,
288288
target=[resource],
289289
query=dict(

0 commit comments

Comments
 (0)