<authenticationModules> Element

Specifies modules used to authenticate Internet requests.

<configuration>
   <system.net>
      <authenticationModules>

<authenticationModules>
</authenticationModules>

Child Elements

Element Description
<add> Adds an authentication module to the application.
<clear> Clears all authentication modules.
<remove> Removes an authentication module from the application.

Remarks

The <authenticationModules> element specifies the authentication modules that conduct the authentication process with a server. An authentication module must implement the IAuthenticationModule interface.

Example

The following example configures a custom authentication module.

<configuration>
   <system.net>
      <authenticationModules>
         <add type="MyAuthModule.dll, MyAuthModule" />
      </authenticationModules>
   </system.net>
</configuration>

Configuration File

This element can be used in the application configuration file, the machine configuration file (Machine.config), and the publisher policy file.

See Also

IAuthenticationModule | AuthenticationManager | Network Settings Schema