Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix test
  • Loading branch information
bgavrilMS committed Sep 26, 2019
commit ba9195b580c25430905852fca32c8271509bf71d
7 changes: 5 additions & 2 deletions msal/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,12 @@ def _acquire_token_silent_from_cache_and_possibly_refresh_it(
"environment": authority.instance,
"realm": authority.tenant,
"home_account_id": (account or {}).get("home_account_id"),
# Some token types (SSH-certs, POP) are bound to a key
"key_id": kwargs.get("data", {}).get("key_id", None)
# Some token types (SSH-certs, POP) are bound to a key
}

key_id = kwargs.get("data", {}).get("key_id", None)
if (key_id):
query["key_id"] = key_id

matches = self.token_cache.find(
self.token_cache.CredentialType.ACCESS_TOKEN,
Expand Down