From 78add6b0e0f06c4f4a5071c4b3ea3e57b74c0a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=ABl=20Mugnier?= Date: Wed, 25 Nov 2020 18:41:21 +0100 Subject: [PATCH] Fix - Passage en anonymous du health endpoint --- Sheaft.Web.Api/Controllers/HealthController.cs | 4 +++- Sheaft.Web.Jobs/Controllers/HealthController.cs | 4 +++- Sheaft.Web.Manage/Controllers/HealthController.cs | 4 +++- Sheaft.Web.Payment/Controllers/HealthController.cs | 4 +++- Sheaft.Web.Signalr/Controllers/HealthController.cs | 4 +++- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Sheaft.Web.Api/Controllers/HealthController.cs b/Sheaft.Web.Api/Controllers/HealthController.cs index 90f7c1437..0b8a390f3 100644 --- a/Sheaft.Web.Api/Controllers/HealthController.cs +++ b/Sheaft.Web.Api/Controllers/HealthController.cs @@ -1,7 +1,9 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; namespace Sheaft.Web.Api.Controllers { + [AllowAnonymous] public class HealthController : Controller { public IActionResult Livez() diff --git a/Sheaft.Web.Jobs/Controllers/HealthController.cs b/Sheaft.Web.Jobs/Controllers/HealthController.cs index 5a47124ea..5b03e0986 100644 --- a/Sheaft.Web.Jobs/Controllers/HealthController.cs +++ b/Sheaft.Web.Jobs/Controllers/HealthController.cs @@ -1,7 +1,9 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; namespace Sheaft.Web.Jobs.Controllers { + [AllowAnonymous] public class HealthController : Controller { public IActionResult Livez() diff --git a/Sheaft.Web.Manage/Controllers/HealthController.cs b/Sheaft.Web.Manage/Controllers/HealthController.cs index 8210a9d7b..74549eff7 100644 --- a/Sheaft.Web.Manage/Controllers/HealthController.cs +++ b/Sheaft.Web.Manage/Controllers/HealthController.cs @@ -1,7 +1,9 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; namespace Sheaft.Web.Manage.Controllers { + [AllowAnonymous] public class HealthController : Controller { public IActionResult Livez() diff --git a/Sheaft.Web.Payment/Controllers/HealthController.cs b/Sheaft.Web.Payment/Controllers/HealthController.cs index 58da08574..8497199c8 100644 --- a/Sheaft.Web.Payment/Controllers/HealthController.cs +++ b/Sheaft.Web.Payment/Controllers/HealthController.cs @@ -1,7 +1,9 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; namespace Sheaft.Web.Payment.Controllers { + [AllowAnonymous] public class HealthController : Controller { public IActionResult Livez() diff --git a/Sheaft.Web.Signalr/Controllers/HealthController.cs b/Sheaft.Web.Signalr/Controllers/HealthController.cs index b90333550..d10bc8a98 100644 --- a/Sheaft.Web.Signalr/Controllers/HealthController.cs +++ b/Sheaft.Web.Signalr/Controllers/HealthController.cs @@ -1,7 +1,9 @@ -using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Mvc; namespace Sheaft.Web.Signalr.Controllers { + [AllowAnonymous] public class HealthController : Controller { public IActionResult Livez()