Interface IHTTPAuthenticationType
WMHTTPConnection allows multiple forms of HTTP authentication. Each individual form can be implemented as an IHTTPAuthenticationType, and bound to a AuthenticationType
Namespace: Quantellia.WMServer.Asset.Model.HTTP.AuthenticationType
Assembly: WMServer.dll
Syntax
public interface IHTTPAuthenticationType
Properties
connection
The WMHTTPConnection object this belongs to.
Declaration
WMHTTPConnection connection { get; set; }
Property Value
Type | Description |
---|---|
WMHTTPConnection |
Methods
AuthenticateRequest(HttpRequestMessage)
Accepts a completed request and authenticates it.
Declaration
Task<HttpRequestMessage> AuthenticateRequest(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request |
Returns
Type | Description |
---|---|
Task<HttpRequestMessage> |
Initialize()
Initializes or refreshes the secret for this HTTP connection. This may take the form of a login procedure.
Declaration
Task Initialize()
Returns
Type | Description |
---|---|
Task |
ValidateKeys()
Validates the AuthenticationData keys. If it fails validation, should throw an exception detailing the missing or malformeed keys.
Declaration
Task ValidateKeys()
Returns
Type | Description |
---|---|
Task |