IAuthenticationModule Interface


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Provides the base authentication interface for Web client authentication modules.

Namespace:   System.Net
Assembly:  System (in System.dll)

type IAuthenticationModule = interface end


Gets the authentication type provided by this authentication module.


Gets a value indicating whether the authentication module supports preauthentication.

System_CAPS_pubmethodAuthenticate(String, WebRequest, ICredentials)

Returns an instance of the Authorization class in respose to an authentication challenge from a server.

System_CAPS_pubmethodPreAuthenticate(WebRequest, ICredentials)

Returns an instance of the Authorization class for an authentication request to a server.

The IAuthenticationModule interface defines the properties and methods that custom authentication modules must use.

Authentication modules conduct the entire authentication process with a server, responding to an authentication challenge as appropriate. This process may consist of requests to an authentication server separate from the resource server, as well as any other activities required to properly authenticate a request for a URI.

Custom authentication modules should implement the IAuthenticationModule interface and then register with the AuthenticationManager.Register method. Authentication modules are also registered at program initialization by reading the configuration file.

The following example creates creates a customized authentication class by implementing the IAuthenticationModule interface. For a complete example refer to the AuthenticationManager class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top