Jes*_*lam 8 c# asp.net owin asp.net-identity
我正在重新审视我的OwinStartup类中的一些代码并具有以下定义:
app.UseCookieAuthentication(new CookieAuthenticationOptions {
AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
LoginPath = new PathString("/login")
});
Run Code Online (Sandbox Code Playgroud)
常数DefaultAuthenticationTypes.ApplicationCookie似乎来自Microsoft.AspNet.Identity.Core并具有价值"ApplicationCookie".
常数CookieAuthenticationDefaults.AuthenticationType来自Microsoft.Owin.Security.Cookies并具有价值"Cookies".它的autodocs读取[在CookieAuthenticationOptions]中使用的默认值 ...
这两个常量对OWIN管道有什么影响?
我没有在我的解决方案中的任何其他位置使用任何AspNet.Identity.Core,所以我应该删除依赖项并使用CookieAuthenticationDefaults吗?
| 归档时间: |
|
| 查看次数: |
1390 次 |
| 最近记录: |