File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ import (
21
21
22
22
// MONGODBCR is the mechanism name for MONGODB-CR.
23
23
//
24
- // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
24
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 3.6 and removed in
25
+ // MongoDB 4.0.
25
26
const MONGODBCR = "MONGODB-CR"
26
27
27
28
func newMongoDBCRAuthenticator (cred * Cred ) (Authenticator , error ) {
@@ -34,7 +35,8 @@ func newMongoDBCRAuthenticator(cred *Cred) (Authenticator, error) {
34
35
35
36
// MongoDBCRAuthenticator uses the MONGODB-CR algorithm to authenticate a connection.
36
37
//
37
- // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
38
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 3.6 and removed in
39
+ // MongoDB 4.0.
38
40
type MongoDBCRAuthenticator struct {
39
41
DB string
40
42
Username string
@@ -43,7 +45,8 @@ type MongoDBCRAuthenticator struct {
43
45
44
46
// Auth authenticates the connection.
45
47
//
46
- // The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
48
+ // The MONGODB-CR authentication mechanism is deprecated in MongoDB 3.6 and removed in
49
+ // MongoDB 4.0.
47
50
func (a * MongoDBCRAuthenticator ) Auth (ctx context.Context , cfg * Config ) error {
48
51
49
52
db := a .DB
You can’t perform that action at this time.
0 commit comments