From 30b5429e11367d71da78c9149ca578155f8dba69 Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 11 Mar 2024 16:03:20 +0100 Subject: [PATCH] fixed oidc not using https callbacks --- Wave/Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Wave/Program.cs b/Wave/Program.cs index 3c8fd28..69bf405 100644 --- a/Wave/Program.cs +++ b/Wave/Program.cs @@ -125,6 +125,15 @@ options.CallbackPath = new PathString("/signin-oidc"); options.SignedOutCallbackPath = new PathString("/signout-callback-oidc"); options.RemoteSignOutPath = new PathString("/signout-oidc"); + + options.Events.OnRedirectToIdentityProvider = context => { + var uri = new UriBuilder(context.ProtocolMessage.RedirectUri) { + Scheme = "https", + Port = -1 + }; + context.ProtocolMessage.RedirectUri = uri.ToString(); + return Task.FromResult(0); + }; }); }