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
IN an ASP.NET Web application if there is any error, how can you debug?
What’s the catch?
What are tuples?
How do u declare static variable and how it is declared and what is its lifetime?
How would you create a permanent cookie?
Give some salient points of difference between request processor and request dispatcher.
What is route in web api?
What is a response cookie?
how to include timer or counting time to display next page in asp.net
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
Demonstrate Render and PreRender?
What are session state modes?
Explain significance of routing? : asp.net mvc
What are resource file and how do we generate resource file?
What are the namespaces used in asp.net mvc? : asp.net mvc