File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
web/packages/teleterm/src/mainProcess Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -77,22 +77,24 @@ export function manageRootClusterProxyHostAllowList({
77
77
78
78
allowList . clear ( ) ;
79
79
for ( const rootCluster of rootClusters ) {
80
- if ( ! rootCluster . proxyHost ) {
81
- continue ;
80
+ if ( rootCluster . proxyHost ) {
81
+ let browserProxyHost : string ;
82
+ try {
83
+ browserProxyHost = proxyHostToBrowserProxyHost ( rootCluster . proxyHost ) ;
84
+ } catch ( error ) {
85
+ logger . error (
86
+ 'Ran into an error when converting proxy host to browser proxy host' ,
87
+ error
88
+ ) ;
89
+ continue ;
90
+ }
91
+ allowList . add ( browserProxyHost ) ;
82
92
}
83
93
84
- let browserProxyHost : string ;
85
- try {
86
- browserProxyHost = proxyHostToBrowserProxyHost ( rootCluster . proxyHost ) ;
87
- } catch ( error ) {
88
- logger . error (
89
- 'Ran into an error when converting proxy host to browser proxy host' ,
90
- error
91
- ) ;
92
- continue ;
94
+ // Allow the SSO hostname for SSO login/mfa redirects.
95
+ if ( rootCluster . ssoHostname ) {
96
+ allowList . add ( rootCluster . ssoHostname ) ;
93
97
}
94
-
95
- allowList . add ( browserProxyHost ) ;
96
98
}
97
99
} ;
98
100
You can’t perform that action at this time.
0 commit comments