Skip to content

Commit 4fee5aa

Browse files
committed
Merge remote-tracking branch 'origin/main' into 8072-dev
2 parents 841776f + 643149f commit 4fee5aa

File tree

32 files changed

+101
-86
lines changed

32 files changed

+101
-86
lines changed

package-lock.json

Lines changed: 47 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/devtools-connect/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/devtools-connect",
3-
"version": "3.0.2",
3+
"version": "3.0.5",
44
"description": "A connection establishment utility for MongoDB developer tools",
55
"homepage": "https://github.com/mongodb-js/devtools-shared/tree/main/packages/devtools-connect",
66
"repository": {
@@ -47,20 +47,20 @@
4747
},
4848
"license": "Apache-2.0",
4949
"dependencies": {
50-
"@mongodb-js/oidc-http-server-pages": "1.1.1",
50+
"@mongodb-js/oidc-http-server-pages": "1.1.2",
5151
"lodash.merge": "^4.6.2",
5252
"mongodb-connection-string-url": "^3.0.0",
5353
"socks": "^2.7.3",
5454
"system-ca": "^2.0.0"
5555
},
5656
"peerDependencies": {
5757
"@mongodb-js/oidc-plugin": "^1.0.0",
58-
"mongodb": "^5.8.1 || ^6.0.0",
58+
"mongodb": "^6.8.0",
5959
"mongodb-log-writer": "^1.4.2"
6060
},
6161
"devDependencies": {
6262
"@mongodb-js/oidc-plugin": "^1.0.0",
63-
"@mongodb-js/saslprep": "^1.1.7",
63+
"@mongodb-js/saslprep": "^1.1.8",
6464
"@types/lodash.merge": "^4.6.7",
6565
"@types/mocha": "^9.0.0",
6666
"@types/node": "^17.0.35",
@@ -75,7 +75,7 @@
7575
"eslint-plugin-promise": "^6.1.1",
7676
"gen-esm-wrapper": "^1.1.0",
7777
"mocha": "^8.4.0",
78-
"mongodb": "^5.8.1 || ^6.0.0",
78+
"mongodb": "^6.8.0",
7979
"mongodb-log-writer": "^1.4.2",
8080
"nyc": "^15.1.0",
8181
"os-dns-native": "^1.2.0",
@@ -87,7 +87,7 @@
8787
},
8888
"optionalDependencies": {
8989
"kerberos": "^2.1.0",
90-
"mongodb-client-encryption": "^6.0.0",
90+
"mongodb-client-encryption": "^6.0.0 || ^6.1.0-alpha.0",
9191
"os-dns-native": "^1.2.0",
9292
"resolve-mongodb-srv": "^1.1.1"
9393
}

packages/devtools-connect/src/connect.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,20 +429,20 @@ describe('devtools connect', function () {
429429
).to.equal(true);
430430
});
431431

432-
it('returns false if the PROVIDER_NAME JS option is set', function () {
432+
it('returns false if the ENVIRONMENT JS option is set', function () {
433433
expect(
434434
isHumanOidcFlow('mongodb://example/?authMechanism=MONGODB-OIDC', {
435435
authMechanismProperties: {
436-
PROVIDER_NAME: 'aws',
436+
ENVIRONMENT: 'azure',
437437
},
438438
})
439439
).to.equal(false);
440440
});
441441

442-
it('returns false if the PROVIDER_NAME url option is set', function () {
442+
it('returns false if the ENVIRONMENT url option is set', function () {
443443
expect(
444444
isHumanOidcFlow(
445-
'mongodb://example/?authMechanism=MONGODB-OIDC&authMechanismProperties=PROVIDER_NAME:aws',
445+
'mongodb://example/?authMechanism=MONGODB-OIDC&authMechanismProperties=ENVIRONMENT:azure',
446446
{}
447447
)
448448
).to.equal(false);

packages/devtools-connect/src/connect.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,8 @@ export function isHumanOidcFlow(
471471
if (
472472
(clientOptions.authMechanism &&
473473
clientOptions.authMechanism !== 'MONGODB-OIDC') ||
474-
clientOptions.authMechanismProperties?.PROVIDER_NAME
474+
clientOptions.authMechanismProperties?.ENVIRONMENT ||
475+
clientOptions.authMechanismProperties?.OIDC_CALLBACK
475476
) {
476477
return false;
477478
}
@@ -487,7 +488,7 @@ export function isHumanOidcFlow(
487488
return (
488489
authMechanism === 'MONGODB-OIDC' &&
489490
!new CommaAndColonSeparatedRecord(sp.get('authMechanismProperties')).get(
490-
'PROVIDER_NAME'
491+
'ENVIRONMENT'
491492
)
492493
);
493494
}

packages/devtools-connect/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"moduleResolution": "node",
88
"outDir": "./dist",
99
"allowJs": true,
10+
"strict": true,
1011
"jsx": "react"
1112
},
1213
"include": ["src/**/*"],

0 commit comments

Comments
 (0)