Added port stripping #78

Merged
khwezi merged 1 commits from payments into master 2026-06-05 07:37:17 +02:00
Showing only changes of commit d38d1dd059 - Show all commits
+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,
}); });
}); });