I am currently implementing a signout method for our WsFederation in .NET Core 2.2. And I found these two methods:
I found these two answers:
I also checked out the Microsoft documentation:
Still don't have a clear answer.
Can anyone tell me what are the differences? and Which one I should use for signing out the authentication/WsFederation from the middleware I established in Startup.cs.
Thanks in advance!
T
Looking at the source for SignoutResult
(ControllerBase.Signout
returns a new SignoutResult
), ExecuteResultAsync
calls SignOutAsync
on the HttpContext
. The only difference might be that calling it on the ControllerBase
results in a proper response being sent to the client.