Forced proto callback #13

Merged
khwezi merged 1 commits from notifications into master 2026-05-17 09:01:04 +02:00
Showing only changes of commit c152018be8 - Show all commits
+5
View File
@@ -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://");
}
}
};
});