How to authenticate users using web.config ?
Answer Posted / 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 View All Answers
How asynchronous call can be implemented using delegates?
How to display validation messages in one control?
What is viewstate? In which event of the page life cycle, is the viewstate available?
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
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
Differences between “dataset” and “datareader”.
Explain what is postback in asp. Net?
How to add DateTime Control in normal DataGrid Server Control?
Explain Optimization technique description?
ASP.NET 2.0's new membership API used for creating and managing user account is exposed through which 2 clause?
Difference between overriding and overloading?
What is viewstate information stored?
What are the features that make asp.net more used framework? : asp.net mvc
What is difference between singleton and single call?
What is a reflection?