Add the missing Redirect.cshtml view used by LoadingPage helper
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.
This commit is contained in:
parent
847557318f
commit
e526b050ed
1 changed files with 11 additions and 0 deletions
11
src/Yavsc.Org/Views/Shared/Redirect.cshtml
Normal file
11
src/Yavsc.Org/Views/Shared/Redirect.cshtml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@model Yavsc.Models.Access.RedirectViewModel
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;url=@Model.RedirectUrl" />
|
||||
<title>@Localizer["Redirecting"]</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>@Localizer["Redirecting to"] <a href="@Model.RedirectUrl">@Model.RedirectUrl</a>…</p>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue