From 8f2261205be46e3d034a893c5889f329a04a22e9 Mon Sep 17 00:00:00 2001 From: Patrick Pimentel Date: Tue, 27 Jan 2026 12:33:54 -0500 Subject: [PATCH] fix(logging): [PM-28877] Remove Config for PII Logging - Removed all show pii. --- bitwarden_license/src/Sso/Startup.cs | 5 ----- src/Identity/Startup.cs | 5 ----- src/SharedWeb/Utilities/ServiceCollectionExtensions.cs | 5 ----- 3 files changed, 15 deletions(-) diff --git a/bitwarden_license/src/Sso/Startup.cs b/bitwarden_license/src/Sso/Startup.cs index a3f37e1a18..c4c676d51f 100644 --- a/bitwarden_license/src/Sso/Startup.cs +++ b/bitwarden_license/src/Sso/Startup.cs @@ -95,11 +95,6 @@ public class Startup GlobalSettings globalSettings, ILogger logger) { - if (environment.IsDevelopment() || globalSettings.SelfHosted) - { - Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true; - } - // Add general security headers app.UseMiddleware(); diff --git a/src/Identity/Startup.cs b/src/Identity/Startup.cs index 561a0d1955..c6d21b59ad 100644 --- a/src/Identity/Startup.cs +++ b/src/Identity/Startup.cs @@ -173,11 +173,6 @@ public class Startup GlobalSettings globalSettings, ILogger logger) { - if (environment.IsDevelopment() || globalSettings.SelfHosted) - { - Microsoft.IdentityModel.Logging.IdentityModelEventSource.ShowPII = true; - } - // Add general security headers app.UseMiddleware(); diff --git a/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs b/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs index 1b10349630..eb85387a72 100644 --- a/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs +++ b/src/SharedWeb/Utilities/ServiceCollectionExtensions.cs @@ -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(