File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ import (
20
20
)
21
21
22
22
// MONGODBCR is the mechanism name for MONGODB-CR.
23
+ //
24
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
23
25
const MONGODBCR = "MONGODB-CR"
24
26
25
27
func newMongoDBCRAuthenticator (cred * Cred ) (Authenticator , error ) {
@@ -31,13 +33,17 @@ func newMongoDBCRAuthenticator(cred *Cred) (Authenticator, error) {
31
33
}
32
34
33
35
// MongoDBCRAuthenticator uses the MONGODB-CR algorithm to authenticate a connection.
36
+ //
37
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
34
38
type MongoDBCRAuthenticator struct {
35
39
DB string
36
40
Username string
37
41
Password string
38
42
}
39
43
40
44
// Auth authenticates the connection.
45
+ //
46
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
41
47
func (a * MongoDBCRAuthenticator ) Auth (ctx context.Context , desc description.Server , rw wiremessage.ReadWriter ) error {
42
48
43
49
// Arbiters cannot be authenticated
You can’t perform that action at this time.
0 commit comments