sign out
This commit is contained in:
@ -14,11 +14,11 @@ using Microsoft.AspNetCore.Mvc;
|
|||||||
var properties = new AuthenticationProperties { RedirectUri = returnUrl };
|
var properties = new AuthenticationProperties { RedirectUri = returnUrl };
|
||||||
return new ChallengeResult("Yavsc", properties);
|
return new ChallengeResult("Yavsc", properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet("~/signout")]
|
[HttpGet("~/signout")]
|
||||||
public async Task<IActionResult> SignOut(string returnUrl="/") {
|
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()
|
public IActionResult Logout()
|
||||||
{
|
{
|
||||||
return SignOut("Cookies", "oidc");
|
return SignOut("Cookies", "Yavsc");
|
||||||
}
|
}
|
||||||
|
|
||||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||||
|
Reference in New Issue
Block a user