Class AuthenticationModuleBaseExtensions
Provides extension methods for classes derived from AuthenticationModuleBase.
Inherited Members
Namespace: EmbedIO.Authentication
Syntax
public static class AuthenticationModuleBaseExtensions
Methods
HandleInvalidCredentials<TModule>(TModule, AuthenticationHandlerCallback)
Sets an AuthenticationHandlerCallback that is called by an authentication module when a request contains invalid credentials.
Declaration
public static TModule HandleInvalidCredentials<TModule>(this TModule this, AuthenticationHandlerCallback callback)
where TModule : AuthenticationModuleBase
Parameters
| Type | Name | Description |
|---|---|---|
| TModule | this | The module on which this method is called. |
| AuthenticationHandlerCallback | callback | The method to call. |
Returns
| Type | Description |
|---|---|
| TModule |
|
Type Parameters
| Name | Description |
|---|---|
| TModule | The type of the module on which this method is called. |
HandleMissingCredentials<TModule>(TModule, AuthenticationHandlerCallback)
Sets an AuthenticationHandlerCallback that is called by an authentication module when authentication could not take place.
Declaration
public static TModule HandleMissingCredentials<TModule>(this TModule this, AuthenticationHandlerCallback callback)
where TModule : AuthenticationModuleBase
Parameters
| Type | Name | Description |
|---|---|---|
| TModule | this | The module on which this method is called. |
| AuthenticationHandlerCallback | callback | The method to call. |
Returns
| Type | Description |
|---|---|
| TModule |
|
Type Parameters
| Name | Description |
|---|---|
| TModule | The type of the module on which this method is called. |