Class StaticHeaderAuthentication
Authenticates HTTP requests that make use of a static authentication header.
Implements
Inherited Members
Namespace: Quantellia.WMServer.Asset.Model.HTTP.AuthenticationType
Assembly: WMServer.dll
Syntax
public class StaticHeaderAuthentication : IHTTPAuthenticationType
Constructors
StaticHeaderAuthentication(WMHTTPConnection)
constructor
Declaration
public StaticHeaderAuthentication(WMHTTPConnection connection)
Parameters
Type | Name | Description |
---|---|---|
WMHTTPConnection | connection |
Properties
connection
The WMHTTPConnection object this belongs to.
Declaration
public WMHTTPConnection connection { get; set; }
Property Value
Type | Description |
---|---|
WMHTTPConnection |
Methods
AuthenticateRequest(HttpRequestMessage)
Accepts a completed request and authenticates it.
Declaration
public Task<HttpRequestMessage> AuthenticateRequest(HttpRequestMessage request)
Parameters
Type | Name | Description |
---|---|---|
HttpRequestMessage | request | The original request |
Returns
Type | Description |
---|---|
Task<HttpRequestMessage> | An authenticated request. |
Initialize()
Initializes or refreshes the secret for this HTTP connection. This may take the form of a login procedure.
Declaration
public 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
public Task ValidateKeys()
Returns
Type | Description |
---|---|
Task |