MCPcopy
hub / github.com/mongodb/node-mongodb-native / x509AuthenticateCommand

Function x509AuthenticateCommand

src/cmap/auth/x509.ts:36–43  ·  view source on GitHub ↗
(credentials: MongoCredentials)

Source from the content-addressed store, hash-verified

34}
35
36function x509AuthenticateCommand(credentials: MongoCredentials) {
37 const command: Document = { authenticate: 1, mechanism: 'MONGODB-X509' };
38 if (credentials.username) {
39 command.user = credentials.username;
40 }
41
42 return command;
43}

Callers 2

prepareMethod · 0.85
authMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected