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 次 |
| 最近记录: |