开发者

Any Framework dependencies on IIdentity.AuthenticationType?

开发者 https://www.devze.com 2023-03-11 14:26 出处:网络
I would like to leverage the IIdentity.AuthenticationType property in a custom FormsAuthentication scenario in order to set my own values. Using the out-of-the-box FormsAuthentication, the Authenticat

I would like to leverage the IIdentity.AuthenticationType property in a custom FormsAuthentication scenario in order to set my own values. Using the out-of-the-box FormsAuthentication, the AuthenticationType of the IIdentity associated with the HttpContext is set to "Forms".

Could anyone verify if there is any logic in the c开发者_C百科ore Asp.Net or Asp.Net MVC Frameworks that have functionality dependent upon the HttpContext.Current.User.Identity.AuthenticationType == "Forms"?


Using Reflector, I analyzed all "Used By" dependencies of IIdentity.AuthenticationType and FormsIdentity.AuthenticationType and none of the core framework has any logic that is conditional to the AuthenticationType value.

0

精彩评论

暂无评论...
验证码 换一张
取 消