ASPNET身份验证/IIS身份验证 [英] ASPNET Authentication/IIS Authentication

查看:110
本文介绍了ASPNET身份验证/IIS身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我对IIS身份验证和ASPNET身份验证非常困惑.

这是有道理的,而且我确实知道为互联网用户构建的网站可以在IIS安全性中阻止匿名访问,并且可以在web.config中将身份验证模式设置为表单".

对于Intranet用户,在web.config中将IIS身份验证设置为集成的Windows身份验证"并且将身份验证模式设置为"windows"也很有意义.

以上几点对我来说很有意义,因为据我了解,当用户发出http请求时,首先IIS对用户进行身份验证,然后将请求移交给ASPNET Engine进行自身的身份验证和授权.我相信第二个身份验证是由web.config..m中的身份验证模式属性控制的,对吗?

如果以上理解有误,请纠正我.

另外,在web.config中将IIS身份验证设置为匿名"并将身份验证模式设置为"Windows"是否有意义?

谢谢!!
Rahul

Hi,
I am quite confused with IIS Authentication and ASPNET Authentication.

It makes sense and i do understand that a website builded for internet users can have Anonymous Access cheked in IIS security and to have Authentication mode set to "Forms" in web.config.

It also makes sense to have IIS Authentication set to "Integrated windows authentication" and Authentication mode set to "windows" in web.config for Intranet users.

Above points makes sense to me because as per my understanding..when user makes an http request, first IIS authenticate the user and than request is handed over to ASPNET Engine for its own authentication and authorization. I believe that this second authentication is what being controlled by Authentication mode attribute in web.config..m I right?

Please correct me if i am wrong in my above understanding.

Also, does it makes any sense to have IIS authentication set to Anonymous and Authentication mode set to "windows" in web.config???

Thanks!!
Rahul

推荐答案

看看这个.
http://www.c-sharpcorner.com/UploadFile/lmoningi/AuthenticationAndAuthorizatio11252005233533PM/AuthenticationAndAuthorizatio.aspx [ ^ ]

问候,
爱德华
Take a look at this.
http://www.c-sharpcorner.com/UploadFile/lmoningi/AuthenticationAndAuthorizatio11252005233533PM/AuthenticationAndAuthorizatio.aspx[^]

Regards,
Eduard


这篇关于ASPNET身份验证/IIS身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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