Permalink
Fetching contributors…
Cannot retrieve contributors at this time
87 lines (72 sloc) 3.12 KB
title ms.custom ms.date ms.prod ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
<authenticationModules> Element (Network Settings)
03/30/2017
.net-framework
dotnet-clr
article
VB
CSharp
C++
jsharp
authenticationModules element
<authenticationModules> element
10fcfaad-82ef-4692-871a-0aec9dfbe75e
15
mcleblanc
markl
markl

<authenticationModules> Element (Network Settings)

Specifies modules used to authenticate network requests.

<configuration>
<system.net>
<authenticationModules>

Syntax

      <authenticationModules>   
</authenticationModules>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

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

Parent Elements

Element Description
system.net Contains settings that specify how the .NET Framework connects to the network.

Remarks

The authenticationModule element specifies the authentication modules that conduct the authentication process with a server. An authentication module must implement the xref:System.Net.IAuthenticationModule interface.

Configuration Files

This element can be used in the application configuration file or the machine configuration file (Machine.config).

Example

The following example enables an authentication module. You should replace the values for Version and PublicKeyToken with the correct values for the specified module.

<configuration>  
  <system.net>  
    <authenticationModules>  
      <add type="System.Net.DigestClient, System, Version=2.0.3600.0,  
                 Culture=neutral, PublicKeyToken=b77a5c561934e089" />  
    </authenticationModules>  
  </system.net>  
</configuration>  

See Also

xref:System.Net.IAuthenticationModule
xref:System.Net.AuthenticationManager
Network Settings Schema