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://"); + } } }; });