MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / _X509Context

Class _X509Context

pymongo/synchronous/auth.py:414–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414class _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
422class _OIDCContext(_AuthContext):

Callers 1

_authenticate_x509Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected