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 1e1c8b0
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 77 deletions.

This file was deleted.

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,36 @@
<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.SetPasswordApi,
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

This file was deleted.

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,30 +58,44 @@
<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>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

<!--<filter>-->
<!--<filter-name>CaptchaFilter</filter-name>-->
<!--<filter-class>org.wso2.carbon.identity.captcha.filter.CaptchaFilter</filter-class>-->
<!--</filter>-->

<filter-mapping>
<filter-name>CaptchaFilter</filter-name>
<url-pattern>/resend-code</url-pattern>
Expand Down

0 comments on commit 1e1c8b0

Please sign in to comment.