1
0
mirror of https://github.com/bitwarden/server synced 2026-01-02 08:33:48 +00:00

fix(auth-validator): [PM-22975] Client Version Validator - Minor touchups to baserequest validator.

This commit is contained in:
Patrick Pimentel
2025-11-20 10:30:18 -05:00
parent 1af2fba496
commit 47a26bb204
4 changed files with 13 additions and 28 deletions

View File

@@ -122,6 +122,10 @@ public abstract class BaseRequestValidator<T> where T : class
return;
}
// 1.5 We need to check now the version number
await ValidateClientVersionAsync(context, validatorContext);
// 2. Decide if this user belongs to an organization that requires SSO.
validatorContext.SsoRequired = await RequireSsoLoginAsync(user, request.GrantType);
if (validatorContext.SsoRequired)