gpt4 book ai didi

asp.net - 框架是否依赖 IIdentity.AuthenticationType?

转载 作者:行者123 更新时间:2023-12-02 13:57:58 25 4
gpt4 key购买 nike

我想在自定义 FormsAuthentication 场景中利用 IIdentity.AuthenticationType 属性来设置我自己的值。使用现成的 FormsAuthentication,与 HttpContext 关联的 IIdentityAuthenticationType 设置为“Forms”。 p>

任何人都可以验证核心 Asp.Net 或 Asp.Net MVC 框架中是否有任何逻辑,其功能依赖于 HttpContext.Current.User.Identity.AuthenticationType == "Forms"

最佳答案

使用 Reflector,我分析了 IIdentity.AuthenticationTypeFormsIdentity.AuthenticationType 的所有“Used By”依赖关系,并且没有一个核心框架具有任何以AuthenticationType 值。

关于asp.net - 框架是否依赖 IIdentity.AuthenticationType?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6240420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com