Class BowireDigestHandler

Namespace
Kuestenlogik.Bowire.Auth
Assembly
Kuestenlogik.Bowire.dll

RFC 7616 HTTP Digest authentication (#679): MD5 and SHA-256, their -sess variants, qop=auth and qop=auth-int, userhash, and a retry on a stale nonce.

public sealed class BowireDigestHandler : DelegatingHandler, IDisposable
Inheritance
BowireDigestHandler
Implements
Inherited Members

Remarks

The request goes out once without credentials; a 401 carrying a Digest challenge is answered by sending it again with an Authorization header. The body is buffered first, because it has to be sent twice and, for auth-int, hashed.

Constructors

BowireDigestHandler(string, string)

Digest with user and password.

public BowireDigestHandler(string user, string password)

Parameters

user string
password string

Methods

SendAsync(HttpRequestMessage, CancellationToken)

protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)

Parameters

request HttpRequestMessage
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>