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 to elimainte the similar data from the different tables
Explain asp.net application life cycle?
What is the difference between page-level caching and fragment caching?
What is DataGrid wheater its a Server Control or something else ?
Explain the significance of routing? : asp.net mvc
What is another word for redirect?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
How to make paging concepts in datagrid in ASP.NET?
How you can return View from ASP.NET Web API method?
Which is better php or asp.net?
Mention the execution process for managed code?
Is asp.net mvc still used? : Asp.Net MVC
What is the part of url?
Describe session handling in a webfarm, how does it work and what are the limits?