Skip to content

IEveAuthentication

NexusLabs.Eve

IEveAuthentication Interface

Resolves authentication headers for an eve request.

public interface IEveAuthentication

Derived
↳ EveBasicAuthentication
↳ EveBearerAuthentication
↳ EveVercelOidcAuthentication

Properties

IEveAuthentication.AuthenticationHeaderNames Property

Gets header names owned by this provider even when no value is emitted for a request. Implementations should declare every credential header so generic per-request headers cannot replace credentials when token resolution returns an empty result.

System.Collections.Generic.IReadOnlyCollection<string> AuthenticationHeaderNames { get; }

Property Value

System.Collections.Generic.IReadOnlyCollection<System.String>

Methods

IEveAuthentication.GetHeadersAsync(CancellationToken) Method

Resolves headers immediately before an HTTP request is sent.

System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyDictionary<string,string>> GetHeadersAsync(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken System.Threading.CancellationToken

Cancels credential resolution.

Returns

System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyDictionary<System.String,System.String>>
Authentication headers whose values override client-level and generic per-request headers. A protected value can be replaced only through an explicitly allowed protected-header override.