如何在登录页面上实施Windows身份验证 [英] How do I implement windows authentication on a log in page
本文介绍了如何在登录页面上实施Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写一个内部Web应用程序.因此,我希望我的登录页面实现Windows身份验证,并且不确定代码,因为当我创建mvc项目时,我可以选择更改身份验证.有人可以解释一下为什么我在
的Web配置中得到无效的标记吗
<表单名称="Login" loginUrl ="Login.aspx" timeout ="2880"/>或把我引到一个网站
我尝试过的事情:
当前正在从数据库中读取
I am writing an internal web application. So I want my login page to implement windows authentication and am not sure about the code because when I created the mvc project I got an option to change authentication. Can someone please explain why am I getting invalid tag in web config on
<forms name ="Login" loginUrl="Login.aspx" timeout="2880" /> or refer me to a site
What I have tried:
Currently reading from database
推荐答案
您可以尝试使用这些链接,我已经用Windows身份验证完成了一些MVC应用程序,发现这些链接是有帮助的:
如何使用ASP.NET MVC创建Intranet网站 [ ^ ]
使用Windows身份验证(C#)对用户进行身份验证| ASP.NET网站 [ ^ ]
You can try these links, I have done a few MVC application with windows authentication and found these links to be helpfull:
How to Create an Intranet Site Using ASP.NET MVC[^]
Authenticating Users with Windows Authentication (C#) | The ASP.NET Site[^]
这篇关于如何在登录页面上实施Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文