logout.jsp revision e8721886dbfd32e88cc7077cbee4b6bb1b44b443
a6bb392de07989ffe72b51e222bc3c46b013c866vboxsync DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
a6bb392de07989ffe72b51e222bc3c46b013c866vboxsync Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
$Id: logout.jsp,v 1.9 2009/07/02 22:00:17 exu Exp $
import="java.util.Map"
(Map<String, String>)request.getAttribute(
String uri = request.getRequestURI();
int firstSlashIndex = uri.indexOf("/");
int secondSlashIndex = uri.indexOf("/", firstSlashIndex+1);
deploymentURI = uri.substring(0, secondSlashIndex);
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
uSession = SessionManager.getProvider().getSession(request);
if ((providerList != null) && !providerList.isEmpty()
SessionManager.getProvider().isValid(uSession) &&
redirectUrl.append(deploymentURI).
append("/wsfederation/jsp/multi.jsp");
if ((realm != null) && (realm.length() != 0)) {
redirectUrl.append("?").
append(WSFederationConstants.REALM_PARAM).
if ((idpEntityId != null) && (idpEntityId.length() != 0)) {
if (redirectUrl.toString().indexOf("?") == -1) {
redirectUrl.append("?");
redirectUrl.append("&");
append("=").append(URLEncDec.encode(idpEntityId));
if ((wreply != null) && (wreply.length() != 0)) {
if (redirectUrl.toString().indexOf("?") == -1) {
redirectUrl.append("?");
redirectUrl.append("&");
append("=").append(URLEncDec.encode(wreply));
wreply = redirectUrl.toString();
if ((wreply != null) && (wreply.length() != 0)) {
document.location.href="<%=wreply%>";
<link rel="stylesheet" type="text/css" href="<%= deploymentURI %>/com_sun_web_ui/css/css_ns6up.css" />
<link rel="shortcut icon" href="<%= deploymentURI %>/com_sun_web_ui/images/favicon/favicon.ico" type="image/x-icon" />
<div class="SkpMedGry1"><a href="#SkipAnchor3860"><img src="<%= deploymentURI %>/com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1"></a></div><div class="MstDiv">
<div class="MstDivTtl"><img name="AMConfig.configurator.ProdName" src="<%= deploymentURI %>/console/images/PrimaryProductName.png" alt="OpenAM" border="0"></div>
<td class="MstTdLogo" width="1%"><img name="AMConfig.configurator.BrandLogo" src="<%= deploymentURI %>/com_sun_web_ui/images/other/javalogo.gif" alt="Java(TM) Logo" border="0" height="55" width="31"></td>
<table class="MstTblEnd" border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><img name="RMRealm.mhCommon.EndorserLogo" src="<%= deploymentURI %>/com_sun_web_ui/images/masthead/masthead-sunname.gif" alt="Sun(TM) Microsystems, Inc." align="right" border="0" height="10" width="108" /></td></tr></table>
<table class="SkpMedGry1" border="0" cellpadding="5" cellspacing="0" width="100%"><tr><td><img src="<%= deploymentURI %>/com_sun_web_ui/images/other/dot.gif" alt="Jump to End of Masthead" border="0" height="1" width="1"></td></tr></table>
if ( wreply!=null && wreply.length()>0 )
document.write("<p id=\"logoutPrompt\">Signing out of <%=displayName%></p>");
for ( String url : providerList.keySet() )
<p>Signing out from <%=providerList.get(url)%></p>