diff --git a/SecurityService/Program.cs b/SecurityService/Program.cs index 00a3859..81e9c3e 100644 --- a/SecurityService/Program.cs +++ b/SecurityService/Program.cs @@ -368,7 +368,11 @@ app.MapGet("/", () => Results.Redirect("/swagger")); app.MapRazorPages(); -app.MapDeveloperEndpoints(); + +if (app.Environment.IsEnvironment("IntegrationTest")) +{ + app.MapDeveloperEndpoints(); +} app.MapManagementEndpoints(); app.MapOidcEndpoints(); app.MapHealthChecks("health", new HealthCheckOptions { Predicate = _ => true, ResponseWriter = Shared.HealthChecks.HealthCheckMiddleware.WriteResponse });