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

Differentiate between early binding and late binding.

571


in which protocol ASP.NET WEB API Work?

609


How can you register a custom server control to a web page?

540


What is client side state management?

502


What is difference between web api and web services?

533






What is jade template engine?

574


What are the properties of the eventargs argument when capturing keyboard events?

537


Which Is Faster MVC or ASP.net ?

579


What is preprocessor in .net?

527


What are sessions used for?

551


What is the difference between a default skin and a named skin?

585


How to register exception filter globally?

578


What is the use of autowireup in asp.net?

557


From which base class all web forms are inherited?

497


What can you do with asp.net?

510