Table of Contents

Class CookieFileAuthenticator

Namespace
NLightning.Daemon.Services.Ipc
Assembly
NLightning.Daemon.dll

Cookie-file-based authenticator (Bitcoin Core style). Uses constant-time comparison.

public sealed class CookieFileAuthenticator
Inheritance
CookieFileAuthenticator
Inherited Members

Constructors

CookieFileAuthenticator(string, ILogger<CookieFileAuthenticator>)

public CookieFileAuthenticator(string cookieFilePath, ILogger<CookieFileAuthenticator> logger)

Parameters

cookieFilePath string
logger ILogger<CookieFileAuthenticator>

Methods

ValidateAsync(string?, CancellationToken)

public Task<bool> ValidateAsync(string? token, CancellationToken ct = default)

Parameters

token string
ct CancellationToken

Returns

Task<bool>