1
0
mirror of https://github.com/bitwarden/server synced 2026-02-08 20:50:13 +00:00

fix(logging): [PM-28877] Remove Config for PII Logging - Removed all show pii.

This commit is contained in:
Patrick Pimentel
2026-01-27 12:33:54 -05:00
parent 4b50c62f95
commit 8f2261205b
3 changed files with 0 additions and 15 deletions

View File

@@ -95,11 +95,6 @@ public class Startup
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
if (environment.IsDevelopment() || globalSettings.SelfHosted)
{
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
}
// Add general security headers
app.UseMiddleware<SecurityHeadersMiddleware>();

View File

@@ -173,11 +173,6 @@ public class Startup
GlobalSettings globalSettings,
ILogger<Startup> logger)
{
if (environment.IsDevelopment() || globalSettings.SelfHosted)
{
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
}
// Add general security headers
app.UseMiddleware<SecurityHeadersMiddleware>();

View File

@@ -471,11 +471,6 @@ public static class ServiceCollectionExtensions
addAuthorization.Invoke(config);
});
}
if (environment.IsDevelopment() || globalSettings.SelfHosted)
{
Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true;
}
}
public static void AddCustomDataProtectionServices(