logout work

This commit is contained in:
eugenp 2013-05-23 21:28:33 +03:00
parent e84500c4c4
commit 794e3c0a95
3 changed files with 7 additions and 3 deletions

View File

@ -169,7 +169,7 @@
<properties>
<!-- Spring -->
<org.springframework.version>3.2.2.RELEASE</org.springframework.version>
<org.springframework.version>3.2.3.RELEASE</org.springframework.version>
<org.springframework.security.version>3.1.4.RELEASE</org.springframework.security.version>
<!-- logging -->
@ -182,7 +182,7 @@
<mockito.version>1.9.5</mockito.version>
<httpcore.version>4.2.4</httpcore.version>
<httpclient.version>4.2.4</httpclient.version>
<httpclient.version>4.2.5</httpclient.version>
<rest-assured.version>1.8.0</rest-assured.version>
<groovy.version>1.8.9</groovy.version>

View File

@ -6,7 +6,7 @@
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd">
<http use-expressions="true">
<intercept-url pattern="/login*" access="isAnonymous()" />
<intercept-url pattern="/login*" access="permitAll" />
<intercept-url pattern="/**" access="isAuthenticated()" />
<form-login
@ -16,6 +16,8 @@
authentication-failure-url="/login.html?error=true"
always-use-default-target="true"/>
<logout/>
</http>
<authentication-manager>

View File

@ -1,7 +1,9 @@
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head></head>
<body>
<h1>This is the body of the sample view</h1>
<a href="<c:url value="j_spring_security_logout" />"> Logout</a>
</body>
</html>