Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows definition of user name and password credentials within the configuration file.
<configuration>
<system.web>
<authentication>
<credentials>
<user>
<user name="username" password="password"/>
Required Attributes
Attribute | Description |
---|---|
name | The logon user name. |
password | The user's password. |
Example
The following example sets password format and supplies a user name and password.
<authentication mode="Windows">
<credentials passwordFormat="SHA1">
<user name="UserName"
password="07B7F3EE06F278DB966BE960E7CBBD103DF30CA6"/>
</credentials>
</authentication>
Requirements
Contained Within: <system.web>
Web Platform: IIS 5.0, IIS 5.1, IIS 6.0
Configuration File: Machine.config, Web.config
Configuration Section Handler: System.Web.Configuration.AuthenticationConfigHandler
See Also
<authentication> Element | <credentials> Element | XML Web Services Created Using ASP.NET and XML Web Service Clients | ASP.NET Configuration | ASP.NET Settings Schema