Skip to content

Commit 4a5255c

Browse files
committed
Remove optional field client_info
1 parent e8e35ba commit 4a5255c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

msal/token_cache.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ def add(self, event):
116116
"oid", decoded_id_token.get("sub")),
117117
"username": decoded_id_token.get("preferred_username"),
118118
"authority_type": "AAD", # Always AAD?
119+
# "client_info": response.get("client_info"), # Optional
119120
}
120121

121122
if id_token:
@@ -146,9 +147,7 @@ def add(self, event):
146147
"home_account_id": home_account_id,
147148
"environment": environment,
148149
"client_id": event.get("client_id"),
149-
# Fields below are considered optional
150-
"target": target,
151-
"client_info": response.get("client_info"),
150+
"target": target, # Optional per schema though
152151
}
153152
if "foci" in response:
154153
rt["family_id"] = response["foci"]

0 commit comments

Comments
 (0)