mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
When retrieving a contextual field like "passphrase", which does not have a typed representation different from "password" or "hidden", the contexts where the field's identity is truly known should be preferred ("password" field of a record with a "keypair" field, which MUST be the key passphrase). When venturing outside well-known contexts, custom fields should be preferred when their standard counterparts would already have well-established meanings that differ from the requested secret (again: "password" of a record with "keypair"). If this is not done, things like retrieving the private key from a "Login" record fail, as one of the possible storage mechanisms for a private key is a hidden or password field, which pulls the user's password instead of their key. In this case, the correct behavior is to pull the typed value ("keypair") if available, and use custom fields ONLY otherwise, as those fields have labels that can establish context. In no other case would it be reliable to assume that a hidden/password field actually contains a private key.