File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -134,26 +134,6 @@ export class MongoCredentials {
134134 this . mechanism = options . mechanism || AuthMechanism . MONGODB_DEFAULT ;
135135 this . mechanismProperties = options . mechanismProperties || { } ;
136136
137- if ( this . mechanism . match ( / M O N G O D B - A W S / i) ) {
138- if ( ! this . username && process . env . AWS_ACCESS_KEY_ID ) {
139- this . username = process . env . AWS_ACCESS_KEY_ID ;
140- }
141-
142- if ( ! this . password && process . env . AWS_SECRET_ACCESS_KEY ) {
143- this . password = process . env . AWS_SECRET_ACCESS_KEY ;
144- }
145-
146- if (
147- this . mechanismProperties . AWS_SESSION_TOKEN == null &&
148- process . env . AWS_SESSION_TOKEN != null
149- ) {
150- this . mechanismProperties = {
151- ...this . mechanismProperties ,
152- AWS_SESSION_TOKEN : process . env . AWS_SESSION_TOKEN
153- } ;
154- }
155- }
156-
157137 if ( this . mechanism === AuthMechanism . MONGODB_OIDC && ! this . mechanismProperties . ALLOWED_HOSTS ) {
158138 this . mechanismProperties = {
159139 ...this . mechanismProperties ,
You can’t perform that action at this time.
0 commit comments