<PackageReference Include="Microsoft.IdentityModel.Logging" Version="8.19.1" />

Microsoft.IdentityModel.Logging.ISafeLogSecurityArtifact

public interface ISafeLogSecurityArtifact
Interface that provides an unsafe method to log a security artifact.
string UnsafeToString()

Returns a string that represents the complete security artifact. This may include sensitive information and should only be used for debugging purposes.