Table of Contents

Class BasicAuthenticator

Namespace
WINKOnvif.Core.Authentication
Assembly
WINKOnvif.Core.dll

Basic HTTP authentication implementation

public class BasicAuthenticator : IAuthenticator
Inheritance
BasicAuthenticator
Implements
Inherited Members

Methods

ApplyAuthentication<TClient, TContract>(TClient, OnvifCredentials)

Applies Basic authentication to a SOAP client

public void ApplyAuthentication<TClient, TContract>(TClient client, OnvifCredentials credentials) where TClient : ClientBase<TContract> where TContract : class

Parameters

client TClient
credentials OnvifCredentials

Type Parameters

TClient
TContract

GetAuthHeaderAsync(HttpRequestMessage, OnvifCredentials)

Gets authentication header for HTTP requests

public Task<AuthenticationHeaderValue> GetAuthHeaderAsync(HttpRequestMessage request, OnvifCredentials credentials)

Parameters

request HttpRequestMessage

The HTTP request to authenticate

credentials OnvifCredentials

Credentials to use for authentication

Returns

Task<AuthenticationHeaderValue>

Authentication header value