diff --git a/manifest.yml b/manifest.yml
index 8a71d4f..2743af5 100644
--- a/manifest.yml
+++ b/manifest.yml
@@ -3,5 +3,5 @@ applications:
- name: axway-apim-service-broker
memory: 1G
random-route: true
- path: target/apim-service-broker-1.1.5.jar
+ path: target/apim-service-broker-1.1.6.jar
\ No newline at end of file
diff --git a/param.json b/param.json
index 2fedc42..94934ee 100644
--- a/param.json
+++ b/param.json
@@ -1,5 +1,5 @@
{
"apiname": "pcftest",
"type":"swagger",
- "uri": "/v3/swagger.json"
+ "uri": "http://greeting-app-interested-fossa.apps.sanpablo.cf-app.com/api/v3/swagger.json"
}
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 397ac63..bfa65c5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
com.axway.apim
apim-service-broker
- 1.1.5
+ 1.1.6
jar
axway-apim-service-broker
Axway APIM Service Broker
diff --git a/src/main/java/com/axway/apim/servicebroker/service/AxwayAPIClient.java b/src/main/java/com/axway/apim/servicebroker/service/AxwayAPIClient.java
index fbb3c86..0b65eb2 100644
--- a/src/main/java/com/axway/apim/servicebroker/service/AxwayAPIClient.java
+++ b/src/main/java/com/axway/apim/servicebroker/service/AxwayAPIClient.java
@@ -194,7 +194,7 @@ public String createFrontend(String backendAPIId, String orgId, String userId) {
return frontEndAPIResponse;
}
- public void applySecurity(String frontEndAPIResponse, String bindingId, String userId)
+ public void applySecurity(String frontEndAPIResponse, String bindingId, String vhost, String userId)
throws ServiceBrokerException {
JsonNode jsonNode;
try {
@@ -208,7 +208,9 @@ public void applySecurity(String frontEndAPIResponse, String bindingId, String u
ArrayNode devices = (ArrayNode) ((ArrayNode) jsonNode.findPath("securityProfiles")).get(0).get("devices");
String virtualAPIId = jsonNode.findPath("id").asText();
- ((ObjectNode) jsonNode).put("path", "/" + bindingId);
+ ((ObjectNode) jsonNode).put(CF_BINDING_ID, bindingId);
+ ((ObjectNode) jsonNode).put(VHOST, vhost);
+ //((ObjectNode) jsonNode).put("path", "/" + bindingId);
// ((ObjectNode) jsonNode).put("createdBy" , userId);
logger.debug("Security Device {}", devices.getClass().getName());
diff --git a/src/main/java/com/axway/apim/servicebroker/service/AxwayServiceBrokerImpl.java b/src/main/java/com/axway/apim/servicebroker/service/AxwayServiceBrokerImpl.java
index 56a1927..2f92568 100644
--- a/src/main/java/com/axway/apim/servicebroker/service/AxwayServiceBrokerImpl.java
+++ b/src/main/java/com/axway/apim/servicebroker/service/AxwayServiceBrokerImpl.java
@@ -91,7 +91,7 @@ public void importAPI(Map parameters, String appRouteURL, String
String response = axwayAPIClient.createBackend(apiName, orgId, type, apiURI);
String backendAPIId = JsonPath.parse(response).read("$.id", String.class);
response = axwayAPIClient.createFrontend(backendAPIId, orgId, userId);
- axwayAPIClient.applySecurity(response, bindingId,userId);
+ axwayAPIClient.applySecurity(response, bindingId, appRouteURL, userId);
}
@@ -104,7 +104,7 @@ public boolean deleteAPI(String bindingId, String serviceInstanceId, String emai
// Get the API based on the name and apply the filters like unpublished
String responseBody = axwayAPIClient.listAPIs();
List