我想在自定义FormsAuthentication场景中利用IIdentity.AuthenticationType属性来设置我自己的值。使用开箱即用的FormsAuthentication,与IIdentity关联的HttpContext的表单被设置为"Forms“。
是否有人可以验证核心Asp.Net或Asp.Net MVC框架中是否有任何逻辑具有依赖于HttpContext.Current.User.Identity.AuthenticationType == "Forms"的功能
发布于 2011-06-08 23:01:12
使用Reflector,我分析了IIdentity.AuthenticationType和FormsIdentity.AuthenticationType的所有"Used By“依赖项,没有一个核心框架具有任何以AuthenticationType值为条件的逻辑。
https://stackoverflow.com/questions/6240420
复制相似问题