This commit is contained in:
Paul Schneider
2025-02-08 21:57:50 +00:00
parent 96a54aa6bf
commit 4d15d50e12
2 changed files with 4 additions and 4 deletions

View File

@ -14,11 +14,11 @@ using Microsoft.AspNetCore.Mvc;
var properties = new AuthenticationProperties { RedirectUri = returnUrl };
return new ChallengeResult("Yavsc", properties);
}
[HttpGet("~/signout")]
public async Task<IActionResult> SignOut(string returnUrl="/") {
await HttpContext.SignOutAsync("Yavsc");
return Redirect(returnUrl);
return SignOut("Cookies", "Yavsc");
}
}

View File

@ -84,7 +84,7 @@ namespace testOauthClient.Controllers
public IActionResult Logout()
{
return SignOut("Cookies", "oidc");
return SignOut("Cookies", "Yavsc");
}
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]