| |||||||||||||||||||||||||||||||||||||||||
ASP.NET ArchitectureASP.NET Web Applications ASP.NET Web Application Security This section provides an overview of the ASP.NET infrastructure and subsystemrelationships, as they relate to the subject of security. The following illustration shows the relationships among the security systems in ASP.NET. ![]() As the illustration shows, all Web clients communicate with ASP.NET applications through IIS. IIS deciphers and optionally authenticates the request. If Allow Anonymous is turned on, no authentication occurs. IIS also finds the requested resource ( such as an ASP.NET application ), and, if the client is authorized, returns the appropriate resource. In addition to the built-in ASP.NET security features, an ASP.NET application can use the low-level security features of the .NET Framework. For more information, see Key Security Concepts. Integrating with IISThis release of ASP.NET uses IIS 5.0 as the primary host environment. When considering ASP.NET authentication, you should understand the interaction with IIS authentication services. IIS always assumes that a set of credentials maps to a Windows NT account and uses them to authenticate a user. There are three different kinds of authentication available in IIS 5.0: basic, digest, and Integrated Windows Authentication ( NTLM or Kerberos ). You can select the type of authentication to use in the IIS administrative services. For more information on IIS authentication, see the IIS documentation. If you request a URL containing an ASP.NET application, the request and authentication information are handed off to the application. ASP.NET provides the two additional types of authentication described in the following table.
Using ASP.NET Configuration FilesASP.NET configuration, of which security is a part, has a hierarchical architecture. All configuration information for ASP.NET is contained in files named The security section of a
<authentication mode = " [ Windows/Forms/Passport/None ] ">
<forms name = " [ name ] " loginUrl = " [ url ] " >
<credentials passwordFormat = " [ Clear, SHA1, MD5 ] ">
<user name = " [ UserName ] " password = " [ password ] " />
</credentials>
</forms>
<passport redirectUrl = "internal" />
</authentication>
<authorization>
<allow users = " [ comma separated list of users ] "
roles = " [ comma separated list of roles ] " />
<deny users = " [ comma separated list of users ] "
roles = " [ comma separated list of roles ] " />
</authorization>
<identity impersonate = " [ true/false ] " />
The default settings for these elements are shown in the following table.
There are three major subsections: authentication, authorization, and identity. The values for each of the elements are usually set by overriding this section of the computer-level configuration file with a similar section in an application configuration file placed in the application root. All subdirectories automatically inherit those settings. However, subdirectories can have their own configuration files that override other settings.
You can use the <location></location> tags to specify a particular file or directory to which settings should apply. For more information about how to use the <location> tag, see Hierarchical Configuration Architecture and Configuration <location> Settings. For more details about ASP.NET configuration in general, see ASP.NET Configuration. The topics that follow provide the data flow details that show how security is handled by ASP.NET, and how the data flows through the security subsystems. See AlsoKey Security Concepts FormsAuthentication Events The Passport Authentication Provider Hierarchical Configuration Architecture Configuration <location> Settings ASP.NET Configuration |
| ||||||||||||||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme