Eth*_*iac 5 asp.net authentication asp.net-mvc forms-authentication
我想IIdentity.AuthenticationType
在自定义FormsAuthentication场景中利用该属性来设置我自己的值.使用出的现成的FormsAuthentication,在AuthenticationType
该中IIdentity
与相关的HttpContext
设置为"表格".
任何人都可以验证核心Asp.Net或Asp.Net MVC框架中是否有任何逻辑,其功能依赖于HttpContext.Current.User.Identity.AuthenticationType == "Forms"
?
使用反射器,我分析了所有"使用"的依赖性IIdentity.AuthenticationType
和FormsIdentity.AuthenticationType
,没有核心框架的有是有条件的任何逻辑AuthenticationType
值.
归档时间: |
|
查看次数: |
719 次 |
最近记录: |