From 1e1c8b0ccd86d4f89fd1ba00f21263397b564569 Mon Sep 17 00:00:00 2001 From: lashinie Date: Tue, 26 Nov 2024 14:05:22 +0530 Subject: [PATCH] modify web.xml in recovery and user endpoints --- .../src/main/webapp/WEB-INF/beans.xml | 23 ---------- .../src/main/webapp/WEB-INF/web.xml | 37 ++++++++++------ .../src/main/webapp/WEB-INF/beans.xml | 25 ----------- .../src/main/webapp/WEB-INF/web.xml | 43 +++++++++++-------- 4 files changed, 51 insertions(+), 77 deletions(-) delete mode 100644 components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/beans.xml delete mode 100644 components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/beans.xml diff --git a/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/beans.xml b/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/beans.xml deleted file mode 100644 index 876b4edb7c..0000000000 --- a/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/beans.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/web.xml b/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/web.xml index b59b40c6b2..81508c0d5a 100644 --- a/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/web.xml +++ b/components/org.wso2.carbon.identity.recovery.endpoint/src/main/webapp/WEB-INF/web.xml @@ -9,11 +9,6 @@ WSO2 Identity Server Recovery REST API WSO2 Identity Server Recovery REST API - - contextConfigLocation - WEB-INF/beans.xml - - CaptchaFilter org.wso2.carbon.identity.captcha.filter.CaptchaFilter @@ -63,18 +58,36 @@ FORWARD - - - org.springframework.web.context.ContextLoaderListener - - - CXFServlet - org.apache.cxf.transport.servlet.CXFServlet + org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet 1 + + + jaxrs.serviceClasses + + org.wso2.carbon.identity.recovery.endpoint.ClaimsApi, + org.wso2.carbon.identity.recovery.endpoint.RecoverPasswordApi, + org.wso2.carbon.identity.recovery.endpoint.RecoverUsernameApi, + org.wso2.carbon.identity.recovery.endpoint.SetPasswordApi, + org.wso2.carbon.identity.recovery.endpoint.ValidateCodeApi, + org.wso2.carbon.identity.recovery.endpoint.CaptchaApi + + + + jaxrs.address + / + + + jaxrs.providers + + com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider, + org.wso2.carbon.identity.recovery.endpoint.filter.ResponseValidationFilter, + org.wso2.carbon.identity.recovery.endpoint.Exceptions.RecoveryEndpointExceptionMapper + + diff --git a/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/beans.xml b/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/beans.xml deleted file mode 100644 index 961a8b0f18..0000000000 --- a/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/beans.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/web.xml b/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/web.xml index 4b03219e0a..5fa322b287 100644 --- a/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/web.xml +++ b/components/org.wso2.carbon.identity.user.endpoint/src/main/webapp/WEB-INF/web.xml @@ -9,11 +9,6 @@ WSO2 Identity Server User REST API WSO2 Identity Server User REST API - - contextConfigLocation - WEB-INF/beans.xml - - CaptchaFilter org.wso2.carbon.identity.captcha.filter.CaptchaFilter @@ -63,18 +58,37 @@ FORWARD - - - org.springframework.web.context.ContextLoaderListener - - - CXFServlet - org.apache.cxf.transport.servlet.CXFServlet + org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet 1 + + + jaxrs.serviceClasses + + org.wso2.carbon.identity.user.endpoint.IntrospectCodeApi, + org.wso2.carbon.identity.user.endpoint.LiteApi, + org.wso2.carbon.identity.user.endpoint.MeApi, + org.wso2.carbon.identity.user.endpoint.PiInfoApi, + org.wso2.carbon.identity.user.endpoint.ResendCodeApi, + org.wso2.carbon.identity.user.endpoint.UpdateUsernameApi, + org.wso2.carbon.identity.user.endpoint.ValidateCodeApi, + org.wso2.carbon.identity.user.endpoint.ValidateUsernameApi + + + + jaxrs.address + / + + + jaxrs.providers + + com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider, + org.wso2.carbon.identity.user.endpoint.exceptions.UserEndpointExceptionMapper + + @@ -82,11 +96,6 @@ /* - - - - - CaptchaFilter /resend-code