ASP.Net身份验证和授权 - 成员资格提供程序 [英] ASP.Net Authentication and Authorization-Membership provider

查看:88
本文介绍了ASP.Net身份验证和授权 - 成员资格提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是ASP.Net应用程序开发的新手。

我正在通过Book中的身份验证。我研究了身份验证模式可以是''表单'','''''和''passport''我们可以使用工具箱中的内置登录控件来使用表单身份验证。只要我们运行页面,就会自动创建ASP.Net_mdf数据库并且所有身份验证内容都是如此注册,登录,匿名访问由ASP.Net Sql会员提供商负责。



我想知道如果使用表单身份验证,我们可以使用自定义登录控件吗?什么是最好的方法?我们是否总是要与Sql Membership提供商进行身份验证?我们可以为用户名和密码创建自己的数据库表吗?简而言之,什么是最佳方法以及可用于使用表单模式创建身份验证页面的选项?

Hi,
I am new to ASP.Net Application Development.
I was going through Authentication from a Book.I studied that Authentication modes can be ''forms'',''windows'' and ''passport'' and we can use built in Login controls from toolbox to use forms authentication.As soon as we run the page, automatically ASP.Net_mdf Database is created and all the authentication stuff like SignUp, Login, Anonymous access is taken care by ASP.Net Sql Membership provider.

I want to know can we go for our custom login controls if using forms authentication? what is the best approach? do we always have to talk to Sql Membership provider for authentication? Can we create our own database tables for usernames and passwords? In short what is the best approach and what are options available for creating a authentication page using forms mode?

推荐答案

是的,您可以使用任何MembershipProvider和RoleProvider进行表单身份验证您当然可以根据需要设计登录屏幕。没有最好的方法。您需要根据自己的需要进行选择。

您甚至可以编写自己的提供商,并将其置于逻辑和数据存储之后。
Yes,you can use any MembershipProvider and RoleProvider with forms authentication and you can of course design your login screen as you want. There is no best approach. You need to choose based on your needs.
You can even write your own providers, and put behind it your logic and data store.


这篇关于ASP.Net身份验证和授权 - 成员资格提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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