| 412 | |
| 413 | |
| 414 | class _X509Context(_AuthContext): |
| 415 | def speculate_command(self) -> MutableMapping[str, Any]: |
| 416 | cmd = {"authenticate": 1, "mechanism": "MONGODB-X509"} |
| 417 | if self.credentials.username is not None: |
| 418 | cmd["user"] = self.credentials.username |
| 419 | return cmd |
| 420 | |
| 421 | |
| 422 | class _OIDCContext(_AuthContext): |
no outgoing calls
no test coverage detected