Skip to content

Commit

Permalink
keep working #4
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadR committed May 2, 2014
1 parent 9dbbd04 commit 8c77e1b
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,10 @@ protected void ping(
response.getWriter().println("ping response: pong");
}

@RequestMapping("/secured/ping")
protected void securedPing(
HttpServletResponse response) throws Exception{
log.info( "got to secured ping" );
response.getWriter().println("secured ping response: pong");
}
}
11 changes: 6 additions & 5 deletions coffee-req/src/main/webapp/WEB-INF/spring-servlet.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,24 @@
<mvc:annotation-driven />
<mvc:default-servlet-handler />

<!-- dont use debug! https://jira.spring.io/browse/SEC-1885 >
<sec:debug>
-->

<sec:http pattern="/login/**" security="none" />
<sec:http pattern="/forgotPasswordPage" security="none" />
<sec:http pattern="/forgotPassword" security="none" />
<sec:http pattern="/createAccountPage" security="none" />
<sec:http pattern="/createAccount" security="none" />

<sec:http authentication-manager-ref="authenticationManager">
<sec:intercept-url pattern="/secure/**" access="ROLE_USER" />
<sec:intercept-url pattern="/secured/**" access="ROLE_USER" />
<sec:anonymous />

<sec:form-login login-page="/login/login.htm"
authentication-success-handler-ref="authenticationSuccessHandler"
authentication-failure-handler-ref="authenticationFailureHandler" />

<!-- sec:remember-me data-source-ref="dataSource" user-service-ref="userDetailsService"/ -->


</sec:http>


Expand Down Expand Up @@ -67,7 +68,7 @@
<!-- decide how you wanna work: in-mem repo, or jdbc impl: -->
<!-- bean class="com.ohadr.auth_flows.mocks.InMemoryAuthenticationAccountRepositoryImpl" / -->
<bean id="userDetailsService"
class="com.ohadr.auth_flows.core.gae.gae.GAEAuthenticationAccountRepositoryImpl" />
class="com.ohadr.auth_flows.core.gae.GAEAuthenticationAccountRepositoryImpl" />

<!--bean class="com.ohadr.auth_flows.core.jdbc.JdbcAuthenticationPolicyRepositoryImpl" / -->
<bean
Expand Down
4 changes: 2 additions & 2 deletions coffee-req/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
</context-param>

<!-- if we work with Spring-security, we already have a listener -->
<listener>
<!-- listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
</listener-->


<servlet>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8c77e1b

Please sign in to comment.