Interface IParameterResolver
- Namespace
- Keycloak.AuthServices.Authorization
- Assembly
- Keycloak.AuthServices.Authorization.dll
Resolves parameter values from a request context for protected resource templates.
public interface IParameterResolver
Methods
Resolve(string, HttpContext, IServiceProvider)
Resolves the value of a named parameter from the current request context.
string? Resolve(string parameter, HttpContext httpContext, IServiceProvider serviceProvider)
Parameters
parameterstringThe parameter name extracted from the resource template (e.g., "workspaceId" from "{workspaceId}").
httpContextHttpContextThe current HTTP context.
serviceProviderIServiceProviderThe request-scoped service provider.
Returns
- string
The resolved parameter value, or
nullif the parameter could not be resolved.