使用Windows身份验证测试内部网站 [英] Testing intranet site that uses Windows authentication

查看:250
本文介绍了使用Windows身份验证测试内部网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发一个应用程序内联网/网站使用Windows身份验证。

I'm trying to develop an intranet app/website that uses Windows authentication.

我想与多个用户进行测试,为角色等。

I'd like to test it with multiple users, for roles etc.

目前我只用我自己的域帐户。有没有一种方法,我可以模拟不同用户的网站?

At the moment I'm only using my own domain account. Is there a way I could simulate different users for the site?

推荐答案

由于一张图片胜过千言万语这里有云如何基于href=\"http://stackoverflow.com/questions/6828699/testing-intranet-site-that-uses-windows-authentication#comment8115605_6829189\"> 2GDev的评论这里复制的

As a picture is worth a thousand words here it goes how to do it in IE based on 2GDev's comment copied here for clarity:

进入Internet选项=>安全性=>本地Intranet =>自定义级别
和更改用户身份验证提示输入用户名和
密码

Go to Internet Options => Security => Local Intranet => Custom Level and change the User Authentication to "Prompt for username and password"

点击确定,然后应用。关闭浏览器。重新打开它,并将它指向你要调试的网站的网址。你应该高兴地看到登录提示,你可以用不同的用户帐户,以模拟例如并发登录(这是我现在在做什么在这里):

Click OK then Apply. Close the browser. Reopen it and point it to the website's URL you want to debug. You should happily see the login prompt where you can login with a different User account to simulate concurrency for example (this is what I'm doing right now here):

< IMG SRC =http://i.stack.imgur.com/6ogfV.pngALT =在这里输入的形象描述>

这篇关于使用Windows身份验证测试内部网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆