diff --git a/src/KArtSell.Host/Program.cs b/src/KArtSell.Host/Program.cs index 7c2f4b8c..22601b4a 100644 --- a/src/KArtSell.Host/Program.cs +++ b/src/KArtSell.Host/Program.cs @@ -234,8 +234,7 @@ var authenticationBuilder = builder.Services options.DefaultChallengeScheme = authenticationScheme; }); -if (builder.Environment.IsDevelopment() - && authenticationMode.Equals("DevelopmentHeader", StringComparison.OrdinalIgnoreCase)) +if (authenticationMode.Equals("DevelopmentHeader", StringComparison.OrdinalIgnoreCase)) { authenticationBuilder.AddScheme( authenticationScheme,