From 265297519c427123b92eeb34172d6d2657869788 Mon Sep 17 00:00:00 2001 From: Loic Masi Date: Tue, 21 Apr 2026 14:37:55 +0200 Subject: [PATCH] =?UTF-8?q?#1=20:=20Encore,=20=C3=A7a=20fait=20beaucoup=20?= =?UTF-8?q?la,=20non.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Webzine.WebApplication/Program.cs | 6 ++++++ Webzine.WebApplication/appsettings.Production.json | 2 +- Webzine.WebApplication/nlog.config | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Webzine.WebApplication/Program.cs b/Webzine.WebApplication/Program.cs index 28b0483..49ced75 100644 --- a/Webzine.WebApplication/Program.cs +++ b/Webzine.WebApplication/Program.cs @@ -134,10 +134,16 @@ static async Task LogKeycloakMetadataAsync(IConfiguration configuration, Logger (int)response.StatusCode, response.Content.Headers.ContentType?.ToString(), preview.Replace(Environment.NewLine, " ")); + Console.WriteLine( + "Diagnostic Keycloak metadata | Url: " + metadataAddress + + " | Status: " + (int)response.StatusCode + + " | ContentType: " + response.Content.Headers.ContentType + + " | Body: " + preview.Replace(Environment.NewLine, " ")); } catch (Exception exception) { logger.Error(exception, "Diagnostic Keycloak metadata impossible | Url: {MetadataAddress} | Message: {Message}", metadataAddress, exception.Message); + Console.WriteLine("Diagnostic Keycloak metadata impossible | Url: " + metadataAddress + " | Message: " + exception.Message); } } diff --git a/Webzine.WebApplication/appsettings.Production.json b/Webzine.WebApplication/appsettings.Production.json index f843cad..aeef358 100644 --- a/Webzine.WebApplication/appsettings.Production.json +++ b/Webzine.WebApplication/appsettings.Production.json @@ -8,6 +8,6 @@ "Keycloak": { "Authority": "https://10.4.0.131/keycloak/realms/webzine-realm", "MetadataAddress": "https://10.4.0.131/keycloak/realms/webzine-realm/.well-known/openid-configuration", - "PublicOrigin": "https://10.4.0.131/" + "PublicOrigin": "https://10.4.0.131" } } diff --git a/Webzine.WebApplication/nlog.config b/Webzine.WebApplication/nlog.config index 6a90a9a..e35344f 100644 --- a/Webzine.WebApplication/nlog.config +++ b/Webzine.WebApplication/nlog.config @@ -36,6 +36,6 @@ - +