0

Iam new to asp.net and working on a web project. There are different users and each user has specific role.Like admin, visitor, registered user etc. The question is what method to use to implement security. Is there any standard way to implement both authentication and authorization. I am using SQL Server 2008. Please tell a standard method.

Thanks

1

3 Answers 3

1

Look into the following topics:

Asp.net roleprovider : http://msdn.microsoft.com/en-us/library/system.web.security.roleprovider.aspx

Asp.net memberschipprovider: http://msdn.microsoft.com/en-us/library/yh26yfzy.aspx

Additional information: http://www.asp.net/security/tutorials/role-based-authorization-cs

Sign up to request clarification or add additional context in comments.

Comments

1

You need to understand the basic principles before you proceed.

Start with ASP.NET Web Application Security

How ASP.NET Security Works

Guide to Claims–based Identity and Access Control

1 Comment

What is an ASP.NET web application exactly? Is that any application with open endpoints?
0

You can use a database, which is most definately the best way to go about it, this will be supported if you are running SQL server. This should help you build the database, and give you some insight into how to implement users and permissions.

http://publib.boulder.ibm.com/infocenter/wpdoc/v510/index.jsp?topic=/com.ibm.wp.ent.doc/wpf/setup_sql.html

Good luck!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.