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 78
78
"@mongodb-js/compass-user-data" : " ^0.7.4" ,
79
79
"@mongodb-js/compass-utils" : " ^0.9.3" ,
80
80
"@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 " ,
84
84
"compass-preferences-model" : " ^2.43.0" ,
85
85
"electron" : " ^36.5.0" ,
86
86
"hadron-ipc" : " ^3.5.3" ,
Original file line number Diff line number Diff line change 1
1
import { shell , app } from 'electron' ;
2
2
import { 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' ;
4
8
import {
5
9
throwIfNotOk ,
6
10
throwIfNetworkTrafficDisabled ,
@@ -153,9 +157,8 @@ export class CompassAuthService {
153
157
allowedFlows : this . getAllowedAuthFlows . bind ( this ) ,
154
158
logger : this . oidcPluginLogger ,
155
159
serializedState,
156
- customHttpOptions : {
157
- agent : this . httpClient . agent ,
158
- } ,
160
+ customFetch : this . httpClient
161
+ . fetch as unknown as MongoDBOIDCPluginOptions [ 'customFetch' ] ,
159
162
} ) ;
160
163
oidcPluginHookLoggerToMongoLogWriter (
161
164
this . oidcPluginLogger ,
Original file line number Diff line number Diff line change 51
51
"dependencies" : {
52
52
"@mongodb-js/compass-logging" : " ^1.7.4" ,
53
53
"@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 " ,
55
55
"@mongodb-js/compass-components" : " ^1.41.0" ,
56
56
"bson" : " ^6.10.3" ,
57
57
"@mongodb-js/compass-app-registry" : " ^9.4.13" ,
Original file line number Diff line number Diff line change 87
87
"@mongodb-js/compass-welcome" : " ^0.61.0" ,
88
88
"@mongodb-js/compass-workspaces" : " ^0.44.0" ,
89
89
"@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 " ,
91
91
"@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
92
92
"@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
93
93
"@mongodb-js/prettier-config-compass" : " ^1.2.8" ,
Original file line number Diff line number Diff line change 228
228
"@mongodb-js/compass-workspaces" : " ^0.44.0" ,
229
229
"@mongodb-js/connection-info" : " ^0.15.4" ,
230
230
"@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 " ,
232
232
"@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
233
233
"@mongodb-js/get-os-info" : " ^0.4.0" ,
234
234
"@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
Original file line number Diff line number Diff line change 53
53
"dependencies" : {
54
54
"@mongodb-js/compass-logging" : " ^1.7.4" ,
55
55
"@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 " ,
58
58
"bson" : " ^6.10.3" ,
59
59
"lodash" : " ^4.17.21" ,
60
60
"mongodb" : " ^6.16.0" ,
67
67
"@mongodb-js/devtools-docker-test-envs" : " ^1.3.3" ,
68
68
"@mongodb-js/eslint-config-compass" : " ^1.4.0" ,
69
69
"@mongodb-js/mocha-config-compass" : " ^1.6.8" ,
70
- "@mongodb-js/oidc-plugin" : " ^1.1.8 " ,
70
+ "@mongodb-js/oidc-plugin" : " ^2.0.0 " ,
71
71
"@mongodb-js/prettier-config-compass" : " ^1.2.8" ,
72
72
"@mongodb-js/tsconfig-compass" : " ^1.2.8" ,
73
73
"@types/lodash" : " ^4.14.188" ,
Original file line number Diff line number Diff line change @@ -112,9 +112,7 @@ export function prepareOIDCOptions({
112
112
if ( connectionOptions . oidc ?. shareProxyWithConnection ) {
113
113
options . applyProxyToOIDC = true ;
114
114
} else {
115
- options . oidc . customHttpOptions = {
116
- agent : createAgent ( proxyOptions ) ,
117
- } ;
115
+ options . applyProxyToOIDC = proxyOptions ;
118
116
}
119
117
120
118
options . oidc . signal = signal ;
Original file line number Diff line number Diff line change @@ -1097,7 +1097,8 @@ class DataServiceImpl extends WithLogContext implements DataService {
1097
1097
'options.oidc.notifyDeviceFlow' ,
1098
1098
'options.oidc.signal' ,
1099
1099
'options.oidc.allowedFlows' ,
1100
- 'options.oidc.customHttpOptions.agent'
1100
+ 'options.oidc.customFetch' ,
1101
+ 'options.oidc.customHttpOptions'
1101
1102
) ;
1102
1103
}
1103
1104
You can’t perform that action at this time.
0 commit comments