473,473 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

About Authentication Mode

sanjib65
102 New Member
I want to understand about this part of web.config file:

Expand|Select|Wrap|Line Numbers
  1. <!--
  2.             The <authentication> section enables configuration 
  3.             of the security authentication mode used by 
  4.             ASP.NET to identify an incoming user. 
  5.         -->
  6.         <authentication mode="Windows"/>
If someone explains....

Best of Luck
Jan 29 '10 #1
1 1647
Frinavale
9,735 Recognized Expert Moderator Expert
Well there are different types of authentication modes that you can use to authenticate users. By default ASP.NET web applications (and websites) are configured to use Windows Authentication.

We should take a step back actually...

When the browser makes a request for your website, IIS needs to authenticate the user in order to create a Windows token that represents the user that will be running the website.

The Windows token created is the user account that the website is run under. By default the application is set up to allow for anonymous authentication so the Windows token created is for the IUSR_MACHINE account.

After IIS authenticates the user, ASP.NET authenticates the user. ASP.NET looks at the web.config to determine what type of authentication should be used to authenticate the user.

In this case, by default, ASP.NET uses Windows authentication to authenticate the user; however, it could be configured to use Passport, or Forms authentication instead.

Forms authentication is pretty cool and I recommend that you take a look into it to educate yourself on what it is all about and how it might help you. You could also check out Passport authentication as well but it's a proprietary authentication service provided by Windows that you have to pay for to use.

For a better explanation of what's going on take a look on MSDN:
There are Tons of articles out there on the topic...

-Frinny
Feb 1 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Billy Jacobs | last post by:
I have a website which has both secure and non-secure pages. I want to uses forms authentication. How do I accomplish this? Originally I had my web.config file in the root with Forms...
1
by: MJ | last post by:
I'm building an application that has a file structure similar to the following: /myapp/user_login.aspx /myapp/user_page_1.aspx /myapp/user_page_2.aspx /myapp/user_page_3.aspx...
10
by: See Sharp | last post by:
Hello all, I have a set of admin pages which are put in a subfolder called admin inside my application folder. I want to limit access to these admin pages. How can I do this? In Linux, I can...
3
by: Amil | last post by:
I must be missing something very simple. I've had a web site running for a long time (anonymous access). Web.config authentication is original (anyone gets in): <authentication mode="Windows"...
4
by: Bennett Haselton | last post by:
If I add this to my web.config file: <authentication mode="Forms"> <forms name=".ASPXUSERDEMO" loginUrl="login.aspx" protection="All" timeout="60" /> </authentication> I can configure the...
4
by: clintonG | last post by:
When VS.NET creates a web.config file it writes a default <authentication mode="Windows" /> entry. Let me see if I got this right... 1.) It does so because I am running locally and my local...
4
by: tripwater | last post by:
Hello, I am currently trying to learn VS, using C#. I have a book called Beginning C# Databases. I am using sqlserver and the first half of the book deals with windows apps. So it uses the windows...
1
by: Joe | last post by:
What I want to do is make only one page require a login. The application itself works fine. I'm getting the following error: Parser Error Message: It is an error to use a section registered as...
3
by: Adam J Knight | last post by:
Hi all, I have an app that mostly requires authentication. However there are a couple of pages that don't require authentication.. What do i need in my web.config, to specify these pages...
6
by: Eng.Rana | last post by:
Hello All, i was wondering what is the main difference between the windows authentication and mixed mode authentication?? according to security recommendations, we should enable windows...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.