1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 16:43:25 +00:00

test(auth-validator): [PM-22975] Client Version Validator - Fixed tests.

This commit is contained in:
Patrick Pimentel
2025-11-20 14:54:33 -05:00
parent 7874ec7c01
commit 91af02b9d2
2 changed files with 45 additions and 1 deletions

View File

@@ -128,7 +128,11 @@ public abstract class BaseRequestValidator<T> where T : class
// could use a known invalid client version and make a request for a user (before we know if they have
// demonstrated ownership of the account via correct credentials) and identify if they exist by getting
// an error response back from the validator saying the user is not compatible with the client.
await ValidateClientVersionAsync(context, validatorContext);
var clientVersionValid = await ValidateClientVersionAsync(context, validatorContext);
if (!clientVersionValid)
{
return;
}
// 2. Decide if this user belongs to an organization that requires SSO.
validatorContext.SsoRequired = await RequireSsoLoginAsync(user, request.GrantType);