Skip to content

Commit

Permalink
modify web.xml in recovery and user endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
lashinijay committed Nov 26, 2024
1 parent 2630019 commit 9f4e43d
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
<display-name>WSO2 Identity Server Recovery REST API</display-name>
<description>WSO2 Identity Server Recovery REST API</description>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/beans.xml</param-value>
</context-param>

<filter>
<filter-name>CaptchaFilter</filter-name>
<filter-class>org.wso2.carbon.identity.captcha.filter.CaptchaFilter</filter-class>
Expand Down Expand Up @@ -63,18 +58,39 @@
<dispatcher>FORWARD</dispatcher>
</filter-mapping>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<load-on-startup>1</load-on-startup>

<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
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.SecurityQuestionApi,
org.wso2.carbon.identity.recovery.endpoint.SecurityQuestionsApi,
org.wso2.carbon.identity.recovery.endpoint.SetPasswordApi,
org.wso2.carbon.identity.recovery.endpoint.ValidateAnswerApi,
org.wso2.carbon.identity.recovery.endpoint.ValidateCodeApi,
org.wso2.carbon.identity.recovery.endpoint.CaptchaApi
</param-value>
</init-param>
<init-param>
<param-name>jaxrs.address</param-name>
<param-value>/</param-value>
</init-param>
<init-param>
<param-name>jaxrs.providers</param-name>
<param-value>
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider,
org.wso2.carbon.identity.recovery.endpoint.filter.ResponseValidationFilter,
org.wso2.carbon.identity.recovery.endpoint.Exceptions.RecoveryEndpointExceptionMapper
</param-value>
</init-param>
</servlet>

<servlet-mapping>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@
<display-name>WSO2 Identity Server User REST API</display-name>
<description>WSO2 Identity Server User REST API</description>

<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>WEB-INF/beans.xml</param-value>
</context-param>

<filter>
<filter-name>CaptchaFilter</filter-name>
<filter-class>org.wso2.carbon.identity.captcha.filter.CaptchaFilter</filter-class>
Expand Down Expand Up @@ -63,18 +58,37 @@
<dispatcher>FORWARD</dispatcher>
</filter-mapping>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>

<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>
org.apache.cxf.transport.servlet.CXFServlet
org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet
</servlet-class>
<load-on-startup>1</load-on-startup>

<init-param>
<param-name>jaxrs.serviceClasses</param-name>
<param-value>
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
</param-value>
</init-param>
<init-param>
<param-name>jaxrs.address</param-name>
<param-value>/</param-value>
</init-param>
<init-param>
<param-name>jaxrs.providers</param-name>
<param-value>
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider,
org.wso2.carbon.identity.user.endpoint.exceptions.UserEndpointExceptionMapper
</param-value>
</init-param>
</servlet>

<servlet-mapping>
Expand Down

0 comments on commit 9f4e43d

Please sign in to comment.