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

docs(auth-validator): [PM-22975] Client Version Validator - Updated comment to make more sense.

This commit is contained in:
Patrick Pimentel
2025-12-08 10:48:22 -05:00
parent 36e7b1c65e
commit 1f8be3b05c

View File

@@ -15,11 +15,13 @@ public interface IClientVersionValidator
/// This validator will use the Client Version on a request, which currently maps
/// to the "Bitwarden-Client-Version" header, to determine if a user meets minimum
/// required client version for issuing tokens on an old client. This is done to
/// incentivize users getting on an updated client when their password encryption
/// method has already been updated. Currently this validator looks for the version
/// defined by MinimumClientVersionForV2Encryption.
/// incentivize users to get on an updated client when their password encryption
/// method has already been updated.
///
/// If the header is omitted, then the validator returns that this request is valid.
/// We do this because clients can always just put whatever they want in the header,
/// and all we can do is try to prevent legitimate clients from ending up in a scenario
/// where they cannot log in due to stale encryption versions and newer client architecture.
/// </summary>
public class ClientVersionValidator(
ICurrentContext currentContext)