Class AccessTokenPropagationHandler
- 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
IHttpContextAccessorThe 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
HttpRequestMessagecancellationToken
CancellationToken