sign out
This commit is contained in:
parent
a16188338a
commit
a4ba534642
2 changed files with 4 additions and 4 deletions
|
|
@ -17,8 +17,8 @@ using Microsoft.AspNetCore.Mvc;
|
|||
|
||||
[HttpGet("~/signout")]
|
||||
public async Task<IActionResult> SignOut(string returnUrl="/") {
|
||||
await HttpContext.SignOutAsync("Yavsc");
|
||||
return Redirect(returnUrl);
|
||||
|
||||
return SignOut("Cookies", "Yavsc");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue