Added port stripping
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-06-05 07:36:41 +02:00
parent e646d16053
commit d38d1dd059
+3 -2
View File
@@ -50,7 +50,8 @@ public static class Api
{ {
var uriBuilder = new UriBuilder(context.ProtocolMessage.RedirectUri) var uriBuilder = new UriBuilder(context.ProtocolMessage.RedirectUri)
{ {
Scheme = "https" Scheme = "https",
Port = -1,
}; };
context.ProtocolMessage.RedirectUri = uriBuilder.Uri.ToString(); context.ProtocolMessage.RedirectUri = uriBuilder.Uri.ToString();
@@ -105,7 +106,7 @@ public static class Api
{ {
await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties await context.ChallengeAsync(OpenIdConnectDefaults.AuthenticationScheme, new AuthenticationProperties
{ {
RedirectUri = redirectUri, RedirectUri = redirectUri,
}); });
}); });