【发布时间】:2016-06-24 18:35:11
【问题描述】:
使用OWIN Cookie认证中间件时,可以通过更改属性中的AuthenticationType来部分控制cookie的名称,f.e.:
app.UseCookieAuthentication(new CookieAuthenticationOptions
{
AuthenticationType = "Test",
//...
});
上面将产生一个名为 .AspNet.Test 的 cookie。有什么办法可以去掉那个 .AspNet. 前缀,因为我们相信它揭示了关于我们正在使用的堆栈的有价值的信息。
【问题讨论】:
标签: c# authentication cookies owin