Table of Contents

Class AccessTokenPropagationHandler

Namespace
Keycloak.AuthServices.Authorization.AuthorizationServer
Assembly
Keycloak.AuthServices.Authorization.dll

Delegating handler to propagate headers

public class AccessTokenPropagationHandler : DelegatingHandler, IDisposable
Inheritance
AccessTokenPropagationHandler
Implements
Inherited Members

Constructors

AccessTokenPropagationHandler(IHttpContextAccessor, IOptions<KeycloakAuthorizationServerOptions>, ILogger<AccessTokenPropagationHandler>)

Initializes a new instance of the AccessTokenPropagationHandler class.

public AccessTokenPropagationHandler(IHttpContextAccessor contextAccessor, IOptions<KeycloakAuthorizationServerOptions> options, ILogger<AccessTokenPropagationHandler> logger)

Parameters

contextAccessor IHttpContextAccessor

The HTTP context accessor.

options IOptions<KeycloakAuthorizationServerOptions>

The Keycloak client options.

logger ILogger<AccessTokenPropagationHandler>

Methods

SendAsync(HttpRequestMessage, CancellationToken)

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

Parameters

request HttpRequestMessage
cancellationToken CancellationToken

Returns

Task<HttpResponseMessage>