From e526b050ed5fb55f3ef6368beb85ac7c2f48e9e7 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Fri, 26 Jun 2026 00:21:58 +0100 Subject: [PATCH] Add the missing Redirect.cshtml view used by LoadingPage helper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AccountController.Signin (and ExternalController / ConsentController) return this.LoadingPage("Redirect", model.ReturnUrl) when the OIDC client is a native one (e.g. PostIt, with a custom-scheme redirect URI). The LoadingPage extension in Yavsc.Extensions renders controller.View("Redirect", …), so a /Views/Shared/Redirect.cshtml must exist. The file was missing, and the absence surfaced as a 500 on POST /signin once the login itself succeeded — the user authenticated fine, Identity.Application signed in, but the response body never rendered and the POST returned InvalidOperationException ('The view Redirect was not found'). This is what broke the PostIt flow after the seed/IdentityResource fixes landed. The view is the standard IdentityServer quickstart loading page: a meta-refresh that redirects the embedded browser to the OIDC client's callback URI (postit://callback). Localizer strings are used so the page is translatable like the rest of the auth UI. --- src/Yavsc.Org/Views/Shared/Redirect.cshtml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/Yavsc.Org/Views/Shared/Redirect.cshtml diff --git a/src/Yavsc.Org/Views/Shared/Redirect.cshtml b/src/Yavsc.Org/Views/Shared/Redirect.cshtml new file mode 100644 index 00000000..b1aa8b72 --- /dev/null +++ b/src/Yavsc.Org/Views/Shared/Redirect.cshtml @@ -0,0 +1,11 @@ +@model Yavsc.Models.Access.RedirectViewModel + + + + + @Localizer["Redirecting"] + + +

@Localizer["Redirecting to"] @Model.RedirectUrl

+ + \ No newline at end of file