
<authentication> | 427
web.config
Reference
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Child Elements
<authentication>, <authorization>, <browserCaps>, <clientTarget>, <compila-
tion>, <customErrors>, <globalization>, <httpHandlers>, <httpModules>,
<httpRuntime>, <identity>, <iisFilter>, <machineKey>, <pages>, <process-
Model>, <securityPolicy>, <sessionState>, <trace>, <trust>, <webServices>
Notes
This element is required in order to use any of its child elements.
<authentication>
<authentication>
</authentication>
Provides attributes and contains child elements used to configure authentication
options in ASP.NET.
Scope
Machine, Application
Attribute
Mode
Determines the type of authentication that will be used by ASP.NET. Valid
values are as follows:
Windows (default)
Uses credentials provided by IIS authentication methods (Basic, Digest,
Integrated Windows Authentication, or Certificates) to authenticate user
requests. Requests can then be permitted or denied based on settings
contained within the
<authorization> element, using the authenticated
username (or an associated group/role name) to allow or deny the request.
This is the default authentication mode defined in machine.config.
Forms
Provides an infrastructure for performing custom authentication in situa-
tions when Windows authentication is not possible. When Forms
authentication