From 10cbfd836c7e7770e9df0226568e967be7d3ae68 Mon Sep 17 00:00:00 2001 From: Patrick Pimentel Date: Mon, 8 Dec 2025 13:39:40 -0500 Subject: [PATCH] fix(auth-validator): [PM-22975] Client Version Validator - Minor function name change. --- .../RequestValidators/ClientVersionValidator.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Identity/IdentityServer/RequestValidators/ClientVersionValidator.cs b/src/Identity/IdentityServer/RequestValidators/ClientVersionValidator.cs index b598eb175a..d34890475f 100644 --- a/src/Identity/IdentityServer/RequestValidators/ClientVersionValidator.cs +++ b/src/Identity/IdentityServer/RequestValidators/ClientVersionValidator.cs @@ -35,7 +35,7 @@ public class ClientVersionValidator( // the user not nullish checked. If they are null then the validator should fail. if (user == null) { - FillContextWithErrorData(requestContext, "no_user", _noUserMessage); + FillRequestContextWithErrorData(requestContext, "no_user", _noUserMessage); return false; } @@ -51,7 +51,7 @@ public class ClientVersionValidator( // with stale encryption architecture. if (clientVersion == null) { - FillContextWithErrorData(requestContext, "version_header_missing", _versionHeaderMissing); + FillRequestContextWithErrorData(requestContext, "version_header_missing", _versionHeaderMissing); return false; } @@ -64,14 +64,14 @@ public class ClientVersionValidator( if (clientVersion < minVersion) { - FillContextWithErrorData(requestContext, "invalid_client_version", _upgradeMessage); + FillRequestContextWithErrorData(requestContext, "invalid_client_version", _upgradeMessage); return false; } return true; } - private void FillContextWithErrorData( + private void FillRequestContextWithErrorData( CustomValidatorRequestContext requestContext, string errorId, string errorMessage)