测试不同账户下的内网站点
我们有使用 Windows 身份验证的 ASP.NET Intranet 站点。开发人员拥有一组测试 Windows 帐户(本地,而不是域),其机器上具有不同的角色。我们使用的所有浏览器(IE、Chrome、FF)都会自动使用当前登录的用户登录。我们如何设置浏览器在打开网站时要求提供凭据?我尝试在 IE 的 Intranet 区域的安全参数中设置“提示输入用户名和密码”,但这没有帮助。但该网站需要在上述所有浏览器中进行测试。那么如何在类似的环境中测试您的网站呢?
附注 在所需的 Windows 组中包含/排除当前用户不是一个选项,因为它需要重新登录。
We have ASP.NET intranet site that uses Windows authentication. Developers have a set of test Windows accounts (local, not domain) with different roles on their boxes. All browsers that we use (IE, Chrome, FF) automatically logon with currently logged in user. How do we setup the browsers to ask for credentials when the site is opened? I tried setting "Prompt for user name and password" in security parameters of intranet zone in IE but that didn't help. But the site needs to be tested in all browsers mentioned above. So how do you test your sites in similar environment?
p.s.
Including/excluding the current user to/from required Windows groups is not an option as it requires re-logon.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个盲目的尝试(我现在甚至没有 Windows,无法检查),但是您是否尝试通过
runas
(命令行实用程序或类似设置)运行浏览器在程序快捷方式属性中)?如果成功,您可以创建快捷方式来启动具有不同凭据的浏览器。This is a shot in the dark (I don't even have Windows handy at the moment and can't check), but did you try running browsers via
runas
(command-line utility, or similar setting in the program shortcut properties)? If it does the trick, you can create shortcuts to launch browsers with different credentials.