Windows身份验证和表单身份验证之间有什么区别? [英] what is the difference between windows authentication and form authentication?

查看:100
本文介绍了Windows身份验证和表单身份验证之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Windows身份验证和表单身份验证?请以简单的方式解释我的实际操作?

解决方案

ASP.NET有方法对用户进行身份验证:

1)表格认证

2) Windows认证



Windows身份验证提供程序是ASP.NET应用程序的默认身份验证提供程序。使用此身份验证的用户登录到应用程序时,凭据将通过IIS与Windows域匹配。





有4种类型的Windows身份验证方法:

1)匿名身份验证 - IIS允许任何用户

2)基本身份验证 - 必须通过网络发送Windows用户名和密码(以纯文本格式,因此不是很安全) 。

3)摘要式身份验证 - 与基本身份验证相同,但凭据已加密。仅适用于IE 5或更高版本

4)集成Windows身份验证 - 依靠Kerberos技术,具有强大的凭据加密







表单身份验证
- 此身份验证依赖于开发人员编写的代码,其中凭据与数据库匹配。凭证在Web表单上输入,并与包含用户信息的数据库表匹配。



希望有帮助:)


< blockquote>表单身份验证 - 它既可用于Intranet,也可用于
用于Internet,但窗口身份验证仅适用于

intranet.In表单身份验证密码存储在config

文件但是在窗口中它存储在系统数据库中。在表单中

身份验证我们不能拥有角色,但在表单中

身份验证我们可以定义角色(喜欢hr角色,其中任何用户ccan都没有。)


表单身份验证是指用户只需为网站登录凭据的地方。 Windows身份验证适用于网站接受用户的Windows凭据以进行登录时。


What is windows authentication and form authentication?pls explain me with practicaly in simple way?

解决方案

ASP.NET has ways to Authenticate a user:
1) Forms Authentication
2) Windows Authentication

Windows Authentication provider is the default authentication provider for ASP.NET applications. When a user using this authentication logs in to an application, the credentials are matched with the Windows domain through IIS.


There are 4 types of Windows Authentication methods:
1) Anonymous Authentication - IIS allows any user
2) Basic Authentication - A windows username and password has to be sent across the network (in plain text format, hence not very secure).
3) Digest Authentication - Same as Basic Authentication, but the credentials are encrypted. Works only on IE 5 or above
4) Integrated Windows Authentication - Relies on Kerberos technology, with strong credential encryption



Forms Authentication
- This authentication relies on code written by a developer, where credentials are matched against a database. Credentials are entered on web forms, and are matched with the database table that contains the user information.

hope it helps :)


Form authentication-It is use for both intranet as well as
for internet,but window authentication is only for
intranet.In form authentication password stored in config
file but in window it stored in system database.In form
authentication we can not have roles,but In form
authentication we can define roles(like hr role where any
no of user ccan come under).


Forms authentication is where the user is required to login with credentials just for the web site. Windows authentication is for when the web site will accept the user's Windows credentials for login purposes.


这篇关于Windows身份验证和表单身份验证之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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