security work
This commit is contained in:
parent
1696627374
commit
d3bbcc89fb
|
@ -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>
|
|
@ -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>
|
Loading…
Reference in New Issue