Skip to content

Commit

Permalink
Also redact id token from now on
Browse files Browse the repository at this point in the history
  • Loading branch information
rayluo committed May 19, 2021
1 parent 0c15c75 commit a5a6b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msal/token_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def wipe(dictionary, sensitive_fields): # Masks sensitive info
return self.__add(event, now=now)
finally:
wipe(event.get("response", {}), ( # These claims were useful during __add()
"access_token", "refresh_token", "username"))
"access_token", "refresh_token", "id_token", "username"))
wipe(event, ["username"]) # Needed for federated ROPC
logger.debug("event=%s", json.dumps(
# We examined and concluded that this log won't have Log Injection risk,
Expand Down

0 comments on commit a5a6b90

Please sign in to comment.