From 091e33a75e35ef78f208684b48b3fd6f98f44a3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Thu, 27 Nov 2025 11:07:23 +0100 Subject: [PATCH] Update DataInboc auth --- src/Backend/DiunaBI.API/Controllers/DataInboxController.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Backend/DiunaBI.API/Controllers/DataInboxController.cs b/src/Backend/DiunaBI.API/Controllers/DataInboxController.cs index d35e00e..2f6933b 100644 --- a/src/Backend/DiunaBI.API/Controllers/DataInboxController.cs +++ b/src/Backend/DiunaBI.API/Controllers/DataInboxController.cs @@ -54,7 +54,7 @@ public class DataInboxController : Controller var authValue = Encoding.UTF8.GetString(Convert.FromBase64String(credentialsArr[1])); var username = authValue.Split(':')[0]; var password = authValue.Split(':')[1]; - if (username != _configuration["morska-user"] || password != _configuration["morska-pass"]) + if (username != _configuration["apiUser"] || password != _configuration["apiPass"]) { _logger.LogWarning("DataInbox: Unauthorized request - bad credentials for source {Source}", dataInbox.Source); return Unauthorized(); @@ -77,7 +77,6 @@ public class DataInboxController : Controller if (dataInbox.Name == "morska.d3.importer") { _logger.LogDebug("DataInbox: Detected morska.d3.importer - processing will be handled by AutoImport"); - // AutoImport będzie obsługiwać ten typ danych } return Ok();