我目前正在。NET Core 2.2]中为我们的WsFederation实现注销方法。我发现了这两种方法:
我找到了这两个答案:
ASP.NET Core Identity 2.0 SignoutAsync is not logging out user if the user signed in with Google
我也签出了Microsoft文档:
仍然没有明确的答案。
谁能告诉我有什么区别?以及应该使用哪一个从我在Startup.cs中建立的中间件中注销认证/ WsFederation。
提前感谢!
T
我目前正在.NET Core 2.2中为我们的WsFederation实现注销方法。我发现了这两种方法:ControllerBase.SignOut方法AuthenticationHttpContextExtensions.SignOutAsync ...
在source上查找SignoutResult
(ControllerBase.Signout
返回新的SignoutResult
),ExecuteResultAsync
调用SignOutAsync
上的HttpContext
。唯一的不同可能是在ControllerBase
上调用它会导致正确的响应发送到客户端。