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
What is jade template engine?
Explain the role of global.asax?
What is the difference between WindowsDefaultLocation and WindowsDefaultBounds?
Which authentication uses a combination of windows and iis authentication?
Explain the difference between authentication and authorization.
How do you secure your connection string information?
How do you change the session time-out value?
What does it mean your session has timed out?
What are asp.net web forms?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
Difference between .NET and previous version?
What is cache in asp net?
What parameters can you pass in the url of the api? Can get and post use the same url?
What is server infrastructure?
How does the iis work?