我正在努力使用ADFS身份验证机制的注销方法
这段代码不起作用
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
return RedirectToAction("login");
您需要在应用程序本身和Azure门户中设置注销URL。
您可以按照此Azure示例中的配置进行操作,以确保正确设置所有内容。 https://github.com/Azure-Samples/active-directory-dotnet-webapp-webapi-openidconnect-aspnetcore
根据您的有限描述,这可能由于多种原因而失败。