Skip to content

Commit

Permalink
Merge pull request #706 from apromore/bugfix/remove-unused-Spring-end…
Browse files Browse the repository at this point in the history
…points

Disabled the Spring endpoints for new users and reset password.
  • Loading branch information
raboczi authored Jan 19, 2021
2 parents d06e18e + 0703766 commit 599331a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
-->
<servlet>
<servlet-name>newUserRegistration</servlet-name>
<servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
Expand All @@ -115,7 +115,7 @@
<servlet-name>resetPassword</servlet-name>
<servlet-class>org.springframework.web.context.support.HttpRequestHandlerServlet</servlet-class>
</servlet>
-->
<servlet>
<servlet-name>portalPluginResource</servlet-name>
<servlet-class>org.apromore.portal.servlet.PortalPluginResourceServlet</servlet-class>
Expand Down Expand Up @@ -160,7 +160,7 @@
<servlet-name>ws</servlet-name>
<url-pattern>*.xsd</url-pattern>
</servlet-mapping>
-->
<servlet-mapping>
<servlet-name>newUserRegistration</servlet-name>
<url-pattern>/register/newUserRegister/*</url-pattern>
Expand All @@ -170,7 +170,7 @@
<servlet-name>resetPassword</servlet-name>
<url-pattern>/register/resetPassword/*</url-pattern>
</servlet-mapping>

-->
<servlet-mapping>
<servlet-name>portalPluginResource</servlet-name>
<url-pattern>/portalPluginResource/*</url-pattern>
Expand Down
4 changes: 4 additions & 0 deletions Supplements/Virgo/portalContext-security.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd">

<!-- Setup for the Servlets used in new user regisration and reset password. -->
<!--
<beans:bean id="resetPassword" class="org.apromore.portal.servlet.ResetPasswordHttpServletRequestHandler" />
<beans:bean id="newUserRegistration" class="org.apromore.portal.servlet.NewUserRegistrationHttpServletRequestHandler" />
-->

<!-- Http Security Setup -->
<http pattern="/applets/**" security="none"/>
Expand All @@ -42,8 +44,10 @@
<http pattern="/robots.txt" security="none"/>
<http pattern="/zkau/**" security="none"/>

<!--
<http pattern="/register/**" security="none"/>
<http pattern="/services/**" security="none"/>
-->

<http auto-config="false" access-denied-page="/denied.zul" use-expressions="true"
entry-point-ref="apromoreAuthenticationEntryPoint" authentication-manager-ref="authenticationManager">
Expand Down

0 comments on commit 599331a

Please sign in to comment.