Skip to main content

UpdateClientRequestValidator Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Endpoints.DynamicClientManagement

UpdateClientRequestValidator Class

Validates an RFC 7592 §2.2 update request: authenticates the registration access token and confirms the client exists, then validates the supplied replacement metadata via the update-specific keyed IRegisterClientRequestValidator. Also enforces the RFC 7592 §2.2 rule that the request body's client_id must match the authenticated client.

public class UpdateClientRequestValidator : Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.IUpdateClientRequestValidator

Inheritance System.Object → UpdateClientRequestValidator

Implements IUpdateClientRequestValidator

Constructors

UpdateClientRequestValidator(IClientRequestValidator, IRegisterClientRequestValidator) Constructor

Validates an RFC 7592 §2.2 update request: authenticates the registration access token and confirms the client exists, then validates the supplied replacement metadata via the update-specific keyed IRegisterClientRequestValidator. Also enforces the RFC 7592 §2.2 rule that the request body's client_id must match the authenticated client.

public UpdateClientRequestValidator(Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.IClientRequestValidator clientRequestValidator, Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.IRegisterClientRequestValidator registrationRequestValidator);

Parameters

clientRequestValidator IClientRequestValidator

Validator for the registration access token.

registrationRequestValidator IRegisterClientRequestValidator

Update-flow metadata validator (keyed by RegistrationKey).

Fields

UpdateClientRequestValidator.RegistrationKey Field

DI service key under which the update-specific IRegisterClientRequestValidator is registered, allowing the same validator interface to be used for both register and update flows.

public const string RegistrationKey = "UpdateClientRequestValidator";

Field Value

System.String

Methods

UpdateClientRequestValidator.ValidateAsync(UpdateClientRequest) Method

Validates an update client request asynchronously.

public System.Threading.Tasks.Task<Abblix.Utils.Result<Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.ValidUpdateClientRequest,Abblix.Oidc.Server.Common.OidcError>> ValidateAsync(Abblix.Oidc.Server.Endpoints.DynamicClientManagement.Interfaces.UpdateClientRequest request);

Parameters

request UpdateClientRequest

The update client request to validate.

Implements ValidateAsync(UpdateClientRequest)

Returns

System.Threading.Tasks.Task<Abblix.Utils.Result<ValidUpdateClientRequest,OidcError>>
A task representing the validation result.