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(