You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by rg...@apache.org on 2011/04/28 23:19:51 UTC
svn commit: r1097615 - in
/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF:
applicationContext-security.xml views/home.jsp
Author: rgardler
Date: Thu Apr 28 21:19:51 2011
New Revision: 1097615
URL: http://svn.apache.org/viewvc?rev=1097615&view=rev
Log:
add a logout option to facilitate testing of different user accounts (and thus different layouts)
Modified:
incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/views/home.jsp
Modified: incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml?rev=1097615&r1=1097614&r2=1097615&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml (original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/applicationContext-security.xml Thu Apr 28 21:19:51 2011
@@ -28,9 +28,11 @@
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
<security:http auto-config="true" use-expressions="true" disable-url-rewriting="true">
- <!-- all urls must be authenticated -->
- <security:intercept-url pattern="/**"
- access="isAuthenticated()" />
+ <!-- all urls must be authenticated -->
+ <security:intercept-url pattern="/**"
+ access="isAuthenticated()" />
+ <security:form-login/>
+ <security:logout/>
</security:http>
<security:authentication-manager>
Modified: incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/views/home.jsp
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/views/home.jsp?rev=1097615&r1=1097614&r2=1097615&view=diff
==============================================================================
--- incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/views/home.jsp (original)
+++ incubator/rave/trunk/rave-portal/src/main/webapp/WEB-INF/views/home.jsp Thu Apr 28 21:19:51 2011
@@ -19,12 +19,17 @@
$Id$
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<jsp:useBean id="pages" type="java.util.List<org.apache.rave.portal.model.Page>" scope="request"/>
<html>
<head>
<title>Rave Home</title>
</head>
<body>
+<div id="header">
+ <a href="<spring:url value="/j_spring_security_logout" htmlEscape="true" />">Logout</a>
+</div>
+
<h1>Hello ${pages[0].owner.username}, welcome to Rave!</h1>
<table>
@@ -42,5 +47,7 @@
</c:forEach>
</tr>
</table>
+
+
</body>
</html>
\ No newline at end of file