作为ASP.NET MVC 5应用程序的Identity Server 4客户端和 需要从服务器注销(没有UI导航)的
。基本上,
public ActionResult ChangeSettings(string code)
{
. . .
if (User.Identity.IsAuthenticated)
{
AuthenticationManager.SignOut(CookieAuthenticationDefaults.AuthenticationType, OpenIdConnectAuthenticationDefaults.AuthenticationType); ///How to get rid of this to redirect to Identity Server 4 as silently (no browser navigation).
}
...
}
我不确定,客户端启动反向通道流的任何方式或某些手动注销的方式。