How to authenticate users using web.config ?



How to authenticate users using web.config ?..

Answer / alb.shah

if we are using form based authentication at that time in
the web.config
we can set the autentication mode to "form"

then we can specify the user name and password which we are
going to access.
if any one can access that application then you can specify
<allow users="*">
inside the authentication tags

<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 ?    6 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

Explain the concept of View Model in MVC?

0 Answers   B-Ways TecnoSoft,


what are the State management and Its Uses

2 Answers  


Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box?

1 Answers  


What is difference between session and cookies in asp net?

0 Answers  


what is asp and asp.net ?

2 Answers   Inspira Technologies,


main difference between asp.net2.0,asp.net1.1,asp.net1.0

15 Answers   Inflexion, Infosys, iSoft, Microsoft, Prakruthi,


What are the best practices to follow to secure connection strings in an ASP.NET web application?

0 Answers   MCN Solutions,


What's the use of response.output.write()?

0 Answers  


How is a property designated as read-only?

2 Answers  


What is active web pages?

0 Answers  


What data type does the RangeValidator control support?

3 Answers   Visual Soft,


What is the main use of Response.Output.Write()?

4 Answers   Siebel,


Categories