Skip to content

Commit 01a9a6c

Browse files
author
Sam Kleinman
committed
GODRIVER-209: deprecate mongodb-cr
Change-Id: Iacb18a9aa3a8613ef99131fecdad30065a715f59
1 parent 026cbc6 commit 01a9a6c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/auth/mongodbcr.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import (
2020
)
2121

2222
// MONGODBCR is the mechanism name for MONGODB-CR.
23+
//
24+
// The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
2325
const MONGODBCR = "MONGODB-CR"
2426

2527
func newMongoDBCRAuthenticator(cred *Cred) (Authenticator, error) {
@@ -31,13 +33,17 @@ func newMongoDBCRAuthenticator(cred *Cred) (Authenticator, error) {
3133
}
3234

3335
// MongoDBCRAuthenticator uses the MONGODB-CR algorithm to authenticate a connection.
36+
//
37+
// The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
3438
type MongoDBCRAuthenticator struct {
3539
DB string
3640
Username string
3741
Password string
3842
}
3943

4044
// Auth authenticates the connection.
45+
//
46+
// The MONGODB-CR authentication mechanism is deprecated in MongoDB 4.0.
4147
func (a *MongoDBCRAuthenticator) Auth(ctx context.Context, desc description.Server, rw wiremessage.ReadWriter) error {
4248

4349
// Arbiters cannot be authenticated

0 commit comments

Comments
 (0)