【问题标题】:browser popup in windows authenticationWindows身份验证中的浏览器弹出窗口
【发布时间】:2011-02-10 18:12:16
【问题描述】:

我正在使用 Windows 身份验证来获取用户的名称: 用户.身份.名称;

如果用户在域之外,则浏览器(不是我的站点)会显示登录弹出窗口。 然后显示我的登录页面。 我不想要。

我希望如果用户未登录,则显示用于登录的我的页面 html。 我该怎么做?

web.config 有

<authentication mode="Windows">
      <forms name="login" loginUrl="~/Login.aspx" defaultUrl="~/Default.aspx" timeout="30000" />
    </authentication>
    <authorization>
<allow users="*" />
      <deny users="?" />
    </authorization>

【问题讨论】:

    标签: c# asp.net login windows-authentication


    【解决方案1】:

    听起来您真正想要的是表单身份验证,表单将对您的 Active Directory 进行身份验证。看看 MSDN 上的这个链接:

    Building Secure ASP.NET Applications: Authentication, Authorization, and Secure Communication

    据我所知,根据此处的 MSDN 文档,您所拥有的表单标签仅用于表单身份验证:Authentication tag documentation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-04-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-25
      • 2016-12-14
      相关资源
      最近更新 更多