You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2011/08/24 17:40:54 UTC
svn commit: r1161163 - in /juddi/trunk/juddi-console:
juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp
uddi-portlets/src/main/webapp/logout.jsp
Author: kstam
Date: Wed Aug 24 15:40:54 2011
New Revision: 1161163
URL: http://svn.apache.org/viewvc?rev=1161163&view=rev
Log:
JUDDI-297 invalidate the token, then redirect to the Logout url
Added:
juddi/trunk/juddi-console/uddi-portlets/src/main/webapp/logout.jsp
Modified:
juddi/trunk/juddi-console/juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp
Modified: juddi/trunk/juddi-console/juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-console/juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp?rev=1161163&r1=1161162&r2=1161163&view=diff
==============================================================================
--- juddi/trunk/juddi-console/juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp (original)
+++ juddi/trunk/juddi-console/juddi-portal/pluto/WEB-INF/themes/pluto-default-theme.jsp Wed Aug 24 15:40:54 2011
@@ -107,7 +107,7 @@ group (the left column) displays portlet
<!-- Logout link -->
<div id="logout" style="float:right;">
- <a href="<c:url value='/Logout'/>">Logout</a>
+ <a href="/uddi-portlets/logout.jsp">Logout</a>
<SELECT onChange="changeTheme(this.options[this.selectedIndex].value);">
<OPTION value="#">-- Select Theme --</OPTION>
<OPTION value="midnightblue">Deep Atlantic</OPTION>
Added: juddi/trunk/juddi-console/uddi-portlets/src/main/webapp/logout.jsp
URL: http://svn.apache.org/viewvc/juddi/trunk/juddi-console/uddi-portlets/src/main/webapp/logout.jsp?rev=1161163&view=auto
==============================================================================
--- juddi/trunk/juddi-console/uddi-portlets/src/main/webapp/logout.jsp (added)
+++ juddi/trunk/juddi-console/uddi-portlets/src/main/webapp/logout.jsp Wed Aug 24 15:40:54 2011
@@ -0,0 +1,50 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ page import="
+ org.apache.juddi.v3.client.config.*,
+ org.apache.juddi.v3.client.transport.*,
+ org.uddi.v3_service.UDDISecurityPortType,
+ org.uddi.api_v3.*" %>
+<% pageContext.setAttribute("now", new java.util.Date()); %>
+
+<html>
+
+ <head>
+ <title>Pluto Portal</title>
+ </head>
+
+ <body>
+
+ <%
+ String token = (String) session.getAttribute("AuthToken");
+ if (token!=null) {
+ out.println("Token=" + token);
+ session.removeAttribute("AuthToken");
+ session.removeAttribute("UserName");
+ Transport transport = WebHelper.getTransport(session.getServletContext());
+ UDDISecurityPortType securityService = transport.getUDDISecurityService();
+ DiscardAuthToken discardAuthToken = new DiscardAuthToken();
+ discardAuthToken.setAuthInfo(token);
+ securityService.discardAuthToken(discardAuthToken);
+ }
+ response.sendRedirect("/pluto/Logout");
+ %>
+ </body>
+
+</html>
+
+
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org