Skip to content

Commit 329c98d

Browse files
committed
INT-644: 2.6.x Auth Support
1 parent 2b00f4d commit 329c98d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"raf": "^3.0.0",
138138
"run-sequence": "^1.1.2",
139139
"run-series": "^1.1.2",
140-
"scout-client": "http://bin.mongodb.org/js/scout-client/v0.1.4/scout-client-0.1.4.tar.gz",
140+
"scout-client": "http://bin.mongodb.org/js/scout-client/v0.1.6/scout-client-0.1.6.tar.gz",
141141
"stream-combiner2": "^1.0.2",
142142
"uuid": "^2.0.1",
143143
"vinyl-buffer": "^1.0.0",

src/connect/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,14 @@ var ConnectView = View.extend({
374374
onConnectionSelected: function(model) {
375375
// If the new model has auth, expand the auth settings container
376376
// and select the correct tab.
377-
this.authMethod = model.auth_mechanism;
377+
// @note (imlucas): gross, but `this.authMethod` is only used
378+
// for managing auth-fields.js so make this pretty when
379+
// there's more time.
380+
if (model.auth_mechanism === 'MONGODB-CR') {
381+
this.authMethod = 'SCRAM-SHA-1';
382+
} else {
383+
this.authMethod = model.auth_mechanism;
384+
}
378385

379386
if (model.auth_mechanism !== null) {
380387
this.authOpen = true;

0 commit comments

Comments
 (0)