From c152018be8b0bb9dcb7b2495cfda01006c78f5a2 Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sun, 17 May 2026 09:00:41 +0200 Subject: [PATCH] Forced proto callback --- ShopAdmin/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ShopAdmin/Program.cs b/ShopAdmin/Program.cs index cae3ff0..4cf8172 100644 --- a/ShopAdmin/Program.cs +++ b/ShopAdmin/Program.cs @@ -77,6 +77,11 @@ builder.Services.AddAuthentication(options => var idToken = await callbackContext.HttpContext.GetTokenAsync("id_token"); if (!string.IsNullOrEmpty(idToken)) callbackContext.ProtocolMessage.IdTokenHint = idToken; + + if (callbackContext.ProtocolMessage.RedirectUri.StartsWith("http://")) + { + callbackContext.ProtocolMessage.RedirectUri = callbackContext.ProtocolMessage.RedirectUri.Replace("http://", "https://"); + } } }; });