public class AuthenticationManager
|
The AuthenticationManager queries each registered authentication module by calling the IAuthenticationModule.Authenticate method for each module. The first authentication module to return an Authorization instance is used to authenticate the request.
Modules that provide the basic, digest, negotiate, NTLM, and Kerberos authentication types are registered with the AuthenticationManager by default. Additional authentication modules that implement the IAuthenticationModule interface can be added using the AuthenticationManager.Register method. Authentication modules are called in the order in which they were added to the list.
RegisteredModules | Read-only Gets a list of authentication modules that are registered with the authentication manager. |
Authenticate | Calls each registered authentication module to find the first module that can respond to the authentication request. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
PreAuthenticate | Preauthenticates a request. |
Register | Registers an authentication module with the authentication manager. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Unregister | Overloaded:Unregister(IAuthenticationModule authenticationModule) Removes the specified authentication module from the list of registered modules. |
Unregister | Overloaded:Unregister(string authenticationScheme) Removes authentication modules with the specified authentication scheme from the list of registered modules. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public static IEnumerator RegisteredModules {get;}
|
public static Authorization Authenticate( |
challenge
request
credentials
Exception Type | Condition |
---|---|
ArgumentNullException | challenge is null. -or- request is null. -or- credentials is null. |
The first Authorization instance returned is used to authenticate the request. If no authentication module can authenticate the request, the AuthenticationManager.Authenticate method returns null.
Authentication modules are called in the order in which they are registered with the AuthenticationManager.
~AuthenticationManager(); |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
public static Authorization PreAuthenticate( |
request
credentials
Exception Type | Condition |
---|---|
ArgumentNullException | request is null. |
Authorization modules that can preauthenticate requests set the IAuthenticationModule.CanPreAuthenticate property to true.
public static void Register( |
authenticationModule
Exception Type | Condition |
---|---|
ArgumentNullException | authenticationModule is null. |
InvalidOperationException | A module for this authentication scheme has already been registered. |
public virtual string ToString(); |
public static void Unregister( |
authenticationModule
Exception Type | Condition |
---|---|
ArgumentNullException | authenticationModule is null. |
InvalidOperationException | The specified IAuthenticationModule was never registered. |
public static void Unregister( |
authenticationScheme
Exception Type | Condition |
---|---|
ArgumentNullException | authenticationScheme is null. |
InvalidOperationException | A module for this authentication scheme was never registered. |