Function
_is_speculative_authenticate
(command_name: str, doc: Mapping[str, Any])
Source from the content-addressed store, hash-verified
| 515 | # The "hello" command is also deemed sensitive when attempting speculative |
| 516 | # authentication. |
| 517 | def _is_speculative_authenticate(command_name: str, doc: Mapping[str, Any]) -> bool: |
| 518 | if ( |
| 519 | command_name.lower() in ("hello", HelloCompat.LEGACY_CMD) |
| 520 | and "speculativeAuthenticate" in doc |
| 521 | ): |
| 522 | return True |
| 523 | return False |
| 524 | |
| 525 | |
| 526 | class _CommandEvent: |
Tested by
no test coverage detected