File tree Expand file tree Collapse file tree 9 files changed +851
-606
lines changed
compass-preferences-model Expand file tree Collapse file tree 9 files changed +851
-606
lines changed Original file line number Diff line number Diff line change 7878 "@mongodb-js/compass-user-data" : " ^0.7.4" ,
7979 "@mongodb-js/compass-utils" : " ^0.9.3" ,
8080 "@mongodb-js/connection-info" : " ^0.15.4" ,
81- "@mongodb-js/devtools-connect" : " ^3.7.2 " ,
82- "@mongodb-js/devtools-proxy-support" : " ^0.4.4 " ,
83- "@mongodb-js/oidc-plugin" : " ^1.1.8 " ,
81+ "@mongodb-js/devtools-connect" : " ^3.9.0 " ,
82+ "@mongodb-js/devtools-proxy-support" : " ^0.5.1 " ,
83+ "@mongodb-js/oidc-plugin" : " ^2.0.0 " ,
8484 "compass-preferences-model" : " ^2.43.0" ,
8585 "electron" : " ^36.5.0" ,
8686 "hadron-ipc" : " ^3.5.3" ,
Original file line number Diff line number Diff line change 11import { shell , app } from 'electron' ;
22import { URL , URLSearchParams } from 'url' ;
3- import type { AuthFlowType , MongoDBOIDCPlugin } from '@mongodb-js/oidc-plugin' ;
3+ import type {
4+ AuthFlowType ,
5+ MongoDBOIDCPlugin ,
6+ MongoDBOIDCPluginOptions ,
7+ } from '@mongodb-js/oidc-plugin' ;
48import {
59 throwIfNotOk ,
610 throwIfNetworkTrafficDisabled ,
@@ -153,9 +157,8 @@ export class CompassAuthService {
153157 allowedFlows : this . getAllowedAuthFlows . bind ( this ) ,
154158 logger : this . oidcPluginLogger ,
155159 serializedState,
156- customHttpOptions : {
157- agent : this . httpClient . agent ,
158- } ,
160+ customFetch : this . httpClient
161+ . fetch as unknown as MongoDBOIDCPluginOptions [ 'customFetch' ] ,
159162 } ) ;
160163 oidcPluginHookLoggerToMongoLogWriter (
161164 this . oidcPluginLogger ,
Original file line number Diff line number Diff line change 5151 "dependencies" : {
5252 "@mongodb-js/compass-logging" : " ^1.7.4" ,
5353 "@mongodb-js/compass-user-data" : " ^0.7.4" ,
54- "@mongodb-js/devtools-proxy-support" : " ^0.4.4 " ,
54+ "@mongodb-js/devtools-proxy-support" : " ^0.5.1 " ,
5555 "@mongodb-js/compass-components" : " ^1.41.0" ,
5656 "bson" : " ^6.10.3" ,
5757 "@mongodb-js/compass-app-registry" : " ^9.4.13" ,
Original file line number Diff line number Diff line change 8787 "@mongodb-js/compass-welcome" : " ^0.61.0" ,
8888 "@mongodb-js/compass-workspaces" : " ^0.44.0" ,
8989 "@mongodb-js/connection-storage" : " ^0.38.0" ,
90- "@mongodb-js/devtools-proxy-support" : " ^0.4.4 " ,
90+ "@mongodb-js/devtools-proxy-support" : " ^0.5.1 " ,
9191 "@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
9292 "@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
9393 "@mongodb-js/prettier-config-compass" : " ^1.2.8" ,
Original file line number Diff line number Diff line change 228228 "@mongodb-js/compass-workspaces" : " ^0.44.0" ,
229229 "@mongodb-js/connection-info" : " ^0.15.4" ,
230230 "@mongodb-js/connection-storage" : " ^0.38.0" ,
231- "@mongodb-js/devtools-proxy-support" : " ^0.4.4 " ,
231+ "@mongodb-js/devtools-proxy-support" : " ^0.5.1 " ,
232232 "@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
233233 "@mongodb-js/get-os-info" : " ^0.4.0" ,
234234 "@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
Original file line number Diff line number Diff line change 5353 "dependencies" : {
5454 "@mongodb-js/compass-logging" : " ^1.7.4" ,
5555 "@mongodb-js/compass-utils" : " ^0.9.3" ,
56- "@mongodb-js/devtools-connect" : " ^3.7.2 " ,
57- "@mongodb-js/devtools-proxy-support" : " ^0.4.4 " ,
56+ "@mongodb-js/devtools-connect" : " ^3.9.0 " ,
57+ "@mongodb-js/devtools-proxy-support" : " ^0.5.1 " ,
5858 "bson" : " ^6.10.3" ,
5959 "lodash" : " ^4.17.21" ,
6060 "mongodb" : " ^6.16.0" ,
6767 "@mongodb-js/devtools-docker-test-envs" : " ^1.3.3" ,
6868 "@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
6969 "@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
70- "@mongodb-js/oidc-plugin" : " ^1.1.8 " ,
70+ "@mongodb-js/oidc-plugin" : " ^2.0.0 " ,
7171 "@mongodb-js/prettier-config-compass" : " ^1.2.8" ,
7272 "@mongodb-js/tsconfig-compass" : " ^1.2.8" ,
7373 "@types/lodash" : " ^4.14.188" ,
Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ export function prepareOIDCOptions({
112112 if ( connectionOptions . oidc ?. shareProxyWithConnection ) {
113113 options . applyProxyToOIDC = true ;
114114 } else {
115- options . oidc . customHttpOptions = {
116- agent : createAgent ( proxyOptions ) ,
117- } ;
115+ options . applyProxyToOIDC = proxyOptions ;
118116 }
119117
120118 options . oidc . signal = signal ;
Original file line number Diff line number Diff line change @@ -1097,7 +1097,8 @@ class DataServiceImpl extends WithLogContext implements DataService {
10971097 'options.oidc.notifyDeviceFlow' ,
10981098 'options.oidc.signal' ,
10991099 'options.oidc.allowedFlows' ,
1100- 'options.oidc.customHttpOptions.agent'
1100+ 'options.oidc.customFetch' ,
1101+ 'options.oidc.customHttpOptions'
11011102 ) ;
11021103 }
11031104
You can’t perform that action at this time.
0 commit comments