【发布时间】:2018-08-09 13:52:44
【问题描述】:
我正在尝试将网站迁移到核心 2.0。有多个 cookie,形式为,
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationScheme = "cookieA",
AutomaticAuthenticate = false,
AutomaticChallenge = false
});
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationScheme = "cookieB",
AutomaticAuthenticate = false,
AutomaticChallenge = false
});
这些 cookie 用于跟踪用户在登录过程中的位置。我看到在核心 2.0 中,这个过程发生了变化,并移至服务管道,但我不清楚如何创建多个 cookie,以及如何翻译这些设置。此外,我正在使用身份服务器 4,并且需要不修改其所有必需的 cookie。这在以前的版本中不是问题,但看起来可能是这里的问题。
谢谢。
【问题讨论】:
标签: c# authentication asp.net-core asp.net-core-2.0 asp.net-core-mvc-2.0