IdentityModelEventSource
has a property called ShowPII
that means that Personally Identifiable Information will be added to the logs (in relation to security). This value is used to decide when to log some OAuth2 sensitive data.
I am trying to understand what kind of Personally Identifiable Information will be logged:
- Client ID? (aka Client Key, Consumer Key)
- Client Secret? (aka Consumer Secret)
- Json Web Tokens? (aka JWT)
- Access Tokens?
- Refresh Tokens?
- Kerberos Tickets?
- PKCE Values?
- Authorization Codes?
I know it cannot get access to usernames and passwords because they are only exchanged directly with the IDP.
But but I need to know if I need to find a way to lock down my log files because it will have data that constitutes a security vulnerability.
SecurityKey.ToString()
is implemented to render only the key type and a few IDs. (JsonWebKey
extends this, but it still doesn't log the actual key data.) – Athlete