Skip to content

Commit

Permalink
error path fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brockallen committed May 11, 2022
1 parent 4b23e9a commit 14e18f6
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/AspNetIdentity/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/AspNetIdentity/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/EntityFramework/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/EntityFramework/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Ciba/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task<IActionResult> OnGet(string id)
if (LoginRequest == null)
{
_logger.LogWarning("Invalid backchannel login id {id}", id);
return RedirectToPage("/home/error/index");
return RedirectToPage("/Home/Error/Index");
}

return Page();
Expand Down
4 changes: 2 additions & 2 deletions hosts/main/Pages/Consent/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public async Task<IActionResult> OnGet(string returnUrl)
View = await BuildViewModelAsync(returnUrl);
if (View == null)
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

Input = new InputModel
Expand All @@ -58,7 +58,7 @@ public async Task<IActionResult> OnPost()
{
// validate return url is still valid
var request = await _interaction.GetAuthorizationContextAsync(Input.ReturnUrl);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Device/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task<IActionResult> OnGet(string userCode)
public async Task<IActionResult> OnPost()
{
var request = await _interaction.GetAuthorizationContextAsync(Input.UserCode);
if (request == null) return RedirectToPage("/Error/Index");
if (request == null) return RedirectToPage("/Home/Error/Index");

ConsentResponse grantedConsent = null;

Expand Down
2 changes: 1 addition & 1 deletion hosts/main/Pages/Redirect/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IActionResult OnGet(string redirectUri)
{
if (!Url.IsLocalUrl(redirectUri))
{
return RedirectToPage("/Error/Index");
return RedirectToPage("/Home/Error/Index");
}

RedirectUri = redirectUri;
Expand Down

0 comments on commit 14e18f6

Please sign in to comment.