@@ -263,13 +263,13 @@ function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, a
263
263
const pkceOnly = authFlow [ 'x-pkce-only' ] || false ;
264
264
const isUrlAbsolute = ( url ) => ( url . indexOf ( '://' ) > 0 || url . indexOf ( '//' ) === 0 ) ;
265
265
if ( refreshUrl && ! isUrlAbsolute ( refreshUrl ) ) {
266
- refreshUrl = `${ this . selectedServer . computedUrl } /${ refreshUrl . replace ( / ^ \/ / , '' ) } ` ;
266
+ refreshUrl = `${ this . selectedServer . baseUrl } /${ refreshUrl . replace ( / ^ \/ / , '' ) } ` ;
267
267
}
268
268
if ( tokenUrl && ! isUrlAbsolute ( tokenUrl ) ) {
269
- tokenUrl = `${ this . selectedServer . computedUrl } /${ tokenUrl . replace ( / ^ \/ / , '' ) } ` ;
269
+ tokenUrl = `${ this . selectedServer . baseUrl } /${ tokenUrl . replace ( / ^ \/ / , '' ) } ` ;
270
270
}
271
271
if ( authorizationUrl && ! isUrlAbsolute ( authorizationUrl ) ) {
272
- authorizationUrl = `${ this . selectedServer . computedUrl } /${ authorizationUrl . replace ( / ^ \/ / , '' ) } ` ;
272
+ authorizationUrl = `${ this . selectedServer . baseUrl } /${ authorizationUrl . replace ( / ^ \/ / , '' ) } ` ;
273
273
}
274
274
let flowNameDisplay ;
275
275
if ( flowName === 'authorizationCode' ) {
@@ -340,11 +340,11 @@ function oAuthFlowTemplate(flowName, clientId, clientSecret, securitySchemeId, a
340
340
< input type ="text " part ="textbox textbox-auth-client-id " value = "${ clientId || '' } " placeholder ="client-id " spellcheck ="false " class ="oauth2 ${ flowName } ${ securitySchemeId } oauth-client-id ">
341
341
${ flowName === 'authorizationCode' || flowName === 'clientCredentials' || flowName === 'password'
342
342
? html `
343
- < input
344
- type ="password " part ="textbox textbox-auth-client-secret "
345
- value = "${ clientSecret || '' } " placeholder ="client-secret " spellcheck ="false "
346
- class ="oauth2 ${ flowName } ${ securitySchemeId }
347
- oauth-client-secret "
343
+ < input
344
+ type ="password " part ="textbox textbox-auth-client-secret "
345
+ value = "${ clientSecret || '' } " placeholder ="client-secret " spellcheck ="false "
346
+ class ="oauth2 ${ flowName } ${ securitySchemeId }
347
+ oauth-client-secret "
348
348
style = "margin:0 5px; ${ pkceOnly ? 'display:none;' : '' } "
349
349
>
350
350
< select style ="margin-right:5px; ${ pkceOnly ? 'display:none;' : '' } " class ="${ flowName } ${ securitySchemeId } oauth-send-client-secret-in ">
0 commit comments