MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _X509Context

Class _X509Context

pymongo/asynchronous/auth.py:419–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418
419class _X509Context(_AuthContext):
420 def speculate_command(self) -> MutableMapping[str, Any]:
421 cmd = {"authenticate": 1, "mechanism": "MONGODB-X509"}
422 if self.credentials.username is not None:
423 cmd["user"] = self.credentials.username
424 return cmd
425
426
427class _OIDCContext(_AuthContext):

Callers 1

_authenticate_x509Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected