Skip to content

Commit

Permalink
Tolerate home_account_id to be None
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed Jun 8, 2022
1 parent a995c05 commit 85f4f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msal/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ def _acquire_token_silent_by_finding_specific_refresh_token(
reverse=True):
logger.debug("Cache attempts an RT")
headers = telemetry_context.generate_headers()
if "home_account_id" in query: # Then use it as CCS Routing info
if query.get("home_account_id"): # Then use it as CCS Routing info
headers["X-AnchorMailbox"] = "Oid:{}".format( # case-insensitive value
query["home_account_id"].replace(".", "@"))
response = client.obtain_token_by_refresh_token(
Expand Down

0 comments on commit 85f4f9e

Please sign in to comment.