MongoAuthMechanism

Describes a vibe.d supported authentication mechanism to use on client connection to a MongoDB server.

Values

ValueMeaning
none

Use no auth mechanism. If a digest or ssl certificate is given this defaults to trying the recommend auth mechanisms depending on server version and input parameters.

scramSHA1

Use SCRAM-SHA-1 as defined in RFC 5802

This is the default when a password is provided. In the future other scram algorithms may be implemented and selectable through these values.

MongoDB: 3.0–

mongoDBCR

Forces login through the legacy MONGODB-CR authentication mechanism. This mechanism is a nonce and MD5 based system.

MongoDB: 1.4–4.0 (deprecated 3.0)

mongoDBX509

Use an X.509 certificate to authenticate. Only works if digest is set to null or empty string in the MongoClientSettings.

MongoDB: 2.6–

Meta