diff --git a/components/org.wso2.carbon.identity.api.dispatcher.core/pom.xml b/components/org.wso2.carbon.identity.api.dispatcher.core/pom.xml index e05c43c..b733813 100644 --- a/components/org.wso2.carbon.identity.api.dispatcher.core/pom.xml +++ b/components/org.wso2.carbon.identity.api.dispatcher.core/pom.xml @@ -87,5 +87,9 @@ org.wso2.carbon.identity.user.api org.wso2.carbon.identity.api.user.common + + org.wso2.carbon.identity.user.api + org.wso2.carbon.identity.api.user.onboard.common + diff --git a/components/org.wso2.carbon.identity.api.dispatcher.core/src/main/java/org/wso2/carbon/identity/api/dispatcher/core/APIErrorExceptionMapper.java b/components/org.wso2.carbon.identity.api.dispatcher.core/src/main/java/org/wso2/carbon/identity/api/dispatcher/core/APIErrorExceptionMapper.java index c7d4ce0..f9bf87a 100644 --- a/components/org.wso2.carbon.identity.api.dispatcher.core/src/main/java/org/wso2/carbon/identity/api/dispatcher/core/APIErrorExceptionMapper.java +++ b/components/org.wso2.carbon.identity.api.dispatcher.core/src/main/java/org/wso2/carbon/identity/api/dispatcher/core/APIErrorExceptionMapper.java @@ -61,6 +61,14 @@ public Response toResponse(WebApplicationException e) { return buildResponse(response, status); + } else if (e instanceof org.wso2.carbon.identity.api.user.onboard.common.error.APIError) { + Object response = ((org.wso2.carbon.identity.api.user.onboard.common.error.APIError) e).getResponseEntity(); + Response.Status status = + getHttpsStatusCode(((org.wso2.carbon.identity.api.user.onboard.common.error.APIError) + e).getCode(), ((org.wso2.carbon.identity.api.user.onboard.common.error.APIError) e).getStatus()); + + return buildResponse(response, status); + } return e.getResponse(); } diff --git a/pom.xml b/pom.xml index ed8115f..77a9ac7 100644 --- a/pom.xml +++ b/pom.xml @@ -113,6 +113,11 @@ org.wso2.carbon.identity.api.user.common ${identity.user.api.version} + + org.wso2.carbon.identity.user.api + org.wso2.carbon.identity.api.user.onboard.common + ${identity.user.api.version} + @@ -220,7 +225,7 @@ 3.4 1.4 1.2.4 - 1.2.3 + 1.3.34 1.1.10 1.5.3 3.0.4