Forced proto callback
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-17 09:00:41 +02:00
parent c7f4aad99d
commit c152018be8
+5
View File
@@ -77,6 +77,11 @@ builder.Services.AddAuthentication(options =>
var idToken = await callbackContext.HttpContext.GetTokenAsync("id_token"); var idToken = await callbackContext.HttpContext.GetTokenAsync("id_token");
if (!string.IsNullOrEmpty(idToken)) callbackContext.ProtocolMessage.IdTokenHint = idToken; if (!string.IsNullOrEmpty(idToken)) callbackContext.ProtocolMessage.IdTokenHint = idToken;
if (callbackContext.ProtocolMessage.RedirectUri.StartsWith("http://"))
{
callbackContext.ProtocolMessage.RedirectUri = callbackContext.ProtocolMessage.RedirectUri.Replace("http://", "https://");
}
} }
}; };
}); });