How to authenticate users using web.config ?

Answer Posted / deepa

Forms authentication can be done at web.config


<authentication mode="Forms">
<forms name="appNameAuth" path="/"
loginUrl="login.aspx" protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="jeff" password="test" />
<user name="mike" password="test" />
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?" />
</authorization>

Is This Answer Correct ?    29 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between rest and restful?

812


Explain file-based dependency and key-based dependency.

790


Can you clarified A Web service can only be written in .NET or not?

795


What does asp.net stand for?

819


A web service can only be written in .net? State whether true or false.

754


when a request is made in Life cycle of ASP.NET page .

739


how to implement some securty aspect in our application i.e 1.cookie poisioning. 2.data encryption. 3.forcefull browsing 4.sql/code injection 5.securing web app by using web services ........my question is how to implement these thing in our application is this done by hard coding or by help of some tool

1898


Is post back property in asp net?

776


Which is better viewstate or session?

729


What is session authentication?

755


Define web services in asp.net.

771


What are the media types of http requests and response?

751


How to create multi language website in asp.net mvc? : Asp.Net MVC

717


How to disable validator control by client side JavaScript?

783


What is the difference between Session and response.Redirect?

895