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


Please Help Members By Posting Answers For Below Questions

how to elimainte the similar data from the different tables

1899


Explain asp.net application life cycle?

732


What is the difference between page-level caching and fragment caching?

723


What is DataGrid wheater its a Server Control or something else ?

792


Explain the significance of routing? : asp.net mvc

773


What is another word for redirect?

697


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

754


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

714


How to make paging concepts in datagrid in ASP.NET?

742


How you can return View from ASP.NET Web API method?

773


Which is better php or asp.net?

704


Mention the execution process for managed code?

735


Is asp.net mvc still used? : Asp.Net MVC

691


What is the part of url?

713


Describe session handling in a webfarm, how does it work and what are the limits?

799