Details
-
New Feature
-
Resolution: Unresolved
-
Minor - P4
-
None
-
None
-
None
Description
Currently, we have static factory methods in {MongoCredential} for creating various types of credentials, but we don't have any for SCRAM-SHA-1 or SCRAM-SHA-256. It would be nice to have a friendly and consistent way of creating MongoCredentials. If one wishes to create a SCRAM credential, the current options are:
var credential1 = MongoCredential.CreateCredential("authSource","user","password"); // let the default authenticator sort it out |
var credential2 = new MongoCredential( |
"SCRAM-SHA-256", // manually specify scram sha (1/256) version |
new MongoInternalIdentity("authSource", "user"), |
new PasswordEvidence("password")); |