Class BearerTokenHandler

Assembly: redb.Identity.Client.dll

that adds Authorization: Bearer <token>
to outgoing requests. If the configured returns
null or an empty token, no header is added (anonymous flow allowed).

public sealed class BearerTokenHandler : DelegatingHandler, IDisposable

Inheritance

Implements

Methods

SendAsync(HttpRequestMessage, CancellationToken)

Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

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

Constructors