File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ const PLAIN_STR: &str = "PLAIN";
35
35
///
36
36
/// Note: not all of these mechanisms are currently supported by the driver.
37
37
#[ derive( Clone , Deserialize , PartialEq , Debug ) ]
38
+ #[ non_exhaustive]
38
39
pub enum AuthMechanism {
39
40
/// MongoDB Challenge Response nonce and MD5 based authentication system. It is currently
40
41
/// deprecated and will never be supported by this driver.
@@ -75,6 +76,13 @@ pub enum AuthMechanism {
75
76
/// Note: This mechanism is not currently supported by this driver but will be in the future.
76
77
Plain ,
77
78
79
+ /// MONGODB-AWS authenticates using AWS IAM credentials (an access key ID and a secret access
80
+ /// key), temporary AWS IAM credentials obtained from an AWS Security Token Service (STS)
81
+ /// Assume Role request, or temporary AWS IAM credentials assigned to an EC2 instance or ECS
82
+ /// task.
83
+ ///
84
+ /// Note: Only server versions 4.4+ support AWS authentication. Additionally, the driver only
85
+ /// supports AWS authentication with the tokio runtime.
78
86
#[ cfg( feature = "tokio-runtime" ) ]
79
87
MongoDbAws ,
80
88
}
You can’t perform that action at this time.
0 commit comments