diff --git a/modules/distribution/resources/api_templates/endpoint_template.xml b/modules/distribution/resources/api_templates/endpoint_template.xml index 400d493e2a..2d4c142397 100644 --- a/modules/distribution/resources/api_templates/endpoint_template.xml +++ b/modules/distribution/resources/api_templates/endpoint_template.xml @@ -117,6 +117,19 @@ $util.escapeXml($endpointSecurity.clientSecret) #end $util.escapeXml($endpointSecurity.tokenUrl) + #if($endpointSecurity.proxyConfigs && $endpointSecurity.proxyConfigs.proxyEnabled == true) + + $util.escapeXml($endpointSecurity.proxyConfigs.proxyHost) + $util.escapeXml($endpointSecurity.proxyConfigs.proxyPort) + $util.escapeXml($endpointSecurity.proxyConfigs.proxyUsername) + #if($isSecureVaultEnabled) + {wso2:vault-lookup('$endpointSecurity.proxyConfigs.proxyPasswordAlias')} + #else + $util.escapeXml($endpointSecurity.proxyConfigs.proxyPassword) + #end + $util.escapeXml($endpointSecurity.proxyConfigs.proxyProtocol) + + #end $util.escapeXml($endpointSecurity.connectionTimeoutDuration) $util.escapeXml($endpointSecurity.connectionRequestTimeoutDuration) $util.escapeXml($endpointSecurity.socketTimeoutDuration)