Table of Contents

Class HeaderParameterResolver

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

Resolves parameters from HTTP request headers.

public sealed class HeaderParameterResolver : IParameterResolver
Inheritance
HeaderParameterResolver
Implements
Inherited Members

Methods

Resolve(string, HttpContext, IServiceProvider)

Resolves the value of a named parameter from the current request context.

public string? Resolve(string parameter, HttpContext httpContext, IServiceProvider serviceProvider)

Parameters

parameter string

The parameter name extracted from the resource template (e.g., "workspaceId" from "{workspaceId}").

httpContext HttpContext

The current HTTP context.

serviceProvider IServiceProvider

The request-scoped service provider.

Returns

string

The resolved parameter value, or null if the parameter could not be resolved.