security work

This commit is contained in:
eugenp 2013-06-02 19:29:00 +03:00
parent 1696627374
commit d3bbcc89fb
2 changed files with 1 additions and 11 deletions

View File

@ -7,7 +7,6 @@
http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
<http use-expressions="true">
<intercept-url pattern="/anonymous*" access="isAnonymous()" />
<intercept-url pattern="/login*" access="permitAll" />
<intercept-url pattern="/**" access="isAuthenticated()" />
@ -17,15 +16,7 @@
</http>
<authentication-manager>
<authentication-provider>
<user-service>
<user name="user1" password="user1Pass" authorities="ROLE_USER" />
</user-service>
</authentication-provider>
<authentication-provider ref="customAuthenticationProvider" />
</authentication-manager>
<!-- <authentication-manager> -->
<!-- <authentication-provider ref="customAuthenticationProvider" /> -->
<!-- </authentication-manager> -->
</beans:beans>

View File

@ -4,6 +4,5 @@
<body>
<h1>This is the body of the sample view</h1>
<a href="<c:url value="/perform_logout" />">Logout</a>
</body>
</html>