MCPcopy Create free account
hub / github.com/AzureAD/microsoft-authentication-library-for-python / find

Method find

msal/token_cache.py:291–296  ·  view source on GitHub ↗

Equivalent to list(search(...)).

(self, credential_type, target=None, query=None, *, now=None)

Source from the content-addressed store, hash-verified

289 self.remove_at(at)
290
291 def find(self, credential_type, target=None, query=None, *, now=None):
292 """Equivalent to list(search(...))."""
293 warnings.warn(
294 "Use list(search(...)) instead to explicitly get a list.",
295 DeprecationWarning)
296 return list(self.search(credential_type, target=target, query=query, now=now))
297
298 def add(self, event, now=None):
299 """Handle a token obtaining event, and add tokens into cache."""

Callers 6

parse_errorFunction · 0.80
has_valid_issuerMethod · 0.80
_get_policy_idsMethod · 0.80
_get_bindingsMethod · 0.80
_get_endpointsMethod · 0.80
testAddByAadMethod · 0.80

Calls 1

searchMethod · 0.95

Tested by 1

testAddByAadMethod · 0.64