realmSelection.jsp revision 984ea967792540448d05fba2ac6fad5dadf91fd6
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews<%--
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater The contents of this file are subject to the terms
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater of the Common Development and Distribution License
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater (the License). You may not use this file except in
0519188c8e1ae76978fc4e0f799620cd36eba07aAutomatic Updater compliance with the License.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater You can obtain a copy of the License at
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington https://opensso.dev.java.net/public/CDDLv1.0.html or
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews opensso/legal/CDDLv1.0.txt
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater See the License for the specific language governing
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington permission and limitations under the License.
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater When distributing Covered Code, include this CDDL
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater Header Notice in each file and include the License file
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews at opensso/legal/CDDLv1.0.txt.
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater If applicable, add the following below the CDDL Header,
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater with the fields enclosed by brackets [] replaced by
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews your own identifying information:
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews "Portions Copyrighted [year] [name of copyright owner]"
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater $Id: realmSelection.jsp,v 1.10 2009/10/29 00:00:00 exu Exp $
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater--%>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater<%@page
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson import="java.util.*"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater import="com.sun.identity.shared.debug.Debug"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater import="com.sun.identity.wsfederation.common.WSFederationConstants"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson import="com.sun.identity.wsfederation.common.WSFederationUtils"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater import="com.sun.identity.wsfederation.meta.WSFederationMetaManager"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater import="com.sun.identity.wsfederation.meta.WSFederationMetaUtils"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater import="com.sun.identity.wsfederation.jaxb.entityconfig.IDPSSOConfigElement"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt import="com.sun.identity.wsfederation.jaxb.wsfederation.FederationElement"
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater%>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater<%
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt Debug debug = WSFederationUtils.debug;
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater String jspFile = "realmSelection.jsp: ";
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater String wreply = (String)request.getParameter("wreply");
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater String wctx = (String)request.getParameter("wctx");
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater if (debug.messageEnabled()) {
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updater debug.message(jspFile + "wreply: "+wreply);
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt }
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater String spMetaAlias = WSFederationMetaUtils.getMetaAliasByUri(
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater request.getRequestURI());
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater if ( spMetaAlias==null || spMetaAlias.length()==0) {
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater response.sendError(response.SC_BAD_REQUEST, "Null metaAlias"
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater /* TODO SAML2Utils.bundle.getString("nullSPEntityID") */);
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater return;
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater }
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater WSFederationMetaManager metaManager =
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater WSFederationUtils.getMetaManager();
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews String spEntityId =
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews metaManager.getEntityByMetaAlias(spMetaAlias);
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews String spRealm = WSFederationMetaUtils.getRealmByMetaAlias(spMetaAlias);
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington Map<String,List<String>> spConfig =
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater WSFederationMetaUtils.getAttributes(
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews metaManager.getSPSSOConfig(spRealm,spEntityId));
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater String accountRealmCookieName =
8e9f3b69914ee02a80b87c97b1f8093edb3e9ae0Automatic Updater spConfig.get(WSFederationConstants.ACCOUNT_REALM_COOKIE_NAME).get(0);
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater String selectedRealm = (String)request.getParameter("realm_list");
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews if (debug.messageEnabled()) {
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater debug.message(jspFile + "Selected realm: " + selectedRealm);
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater }
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews if ( selectedRealm != null )
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater {
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews StringBuffer url = new StringBuffer(wreply);
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater url.append("?whr=");
693c4232dfdffaff672197d4b9fea944c64cf80aAutomatic Updater url.append(selectedRealm);
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews if (wctx != null) {
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater url.append("&wctx=");
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson url.append(wctx);
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater }
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater if (debug.messageEnabled()) {
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews debug.message(jspFile + "Redirecting to: "+url);
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater }
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson response.sendRedirect(url.toString());
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater return;
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater }
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater String contextPath = request.getContextPath();
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater%>
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater<html>
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews<head>
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater<title>OpenSSO (Realm Selection)</title>
11af78f7dc35741bdab68dbab11b03daab005b28Automatic Updater<link rel="stylesheet" href="<%= contextPath %>/css/styles.css" type="text/css" />
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews<script language="JavaScript" src="<%= contextPath %>/js/browserVersion.js"></script>
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont<script language="JavaScript" src="<%= contextPath %>/js/auth.js"></script>
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater<script language="JavaScript">
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont writeCSS('<%= contextPath %>');
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater function formSubmit() {
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater var frm = document.forms['realm_form'];
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews if (frm != null) {
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater frm.submit();
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater }
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews }
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater</script>
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater<script type="text/javascript"><!--// Empty script so IE5.0 Windows will draw table and button borders
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews//-->
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews</script>
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater</head>
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews<body class="LogBdy" onload="placeCursorOnFirstElm();">
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater <table border="0" cellpadding="0" cellspacing="0" align="center" title="">
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <tr>
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater <td width="50%"><img src="<%= contextPath %>/images/dot.gif" width="1" height="1" alt="" /></td>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <td><img src="<%= contextPath %>/images/dot.gif" width="728" height="1" alt="" /></td>
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater <td width="50%"><img src="<%= contextPath %>/images/dot.gif" width="1" height="1" alt="" /></td>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater </tr>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <tr class="LogTopBnd" style="background-image: url(<%= contextPath %>/images/gradlogtop.jpg);
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater background-repeat: repeat-x; background-position: left top;">
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <td><img src="<%= contextPath %>/images/dot.gif" width="1" height="30" alt="" /></td>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <td>&nbsp;</td>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson </tr>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <tr>
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews <td class="LogMidBnd" style="background-image: url(<%= contextPath %>/images/gradlogsides.jpg);
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson background-repeat:repeat-x;background-position:left top;">&nbsp;</td>
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater <td class="LogCntTd" style="background-image: url(<%= contextPath %>/images/login-backimage.jpg);
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater background-repeat:no-repeat;background-position:left top;" height="435" align="center" valign="middle">
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater <table border="0" background="<%= contextPath %>/images/dot.gif" cellpadding="0" cellspacing="0"
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater width="100%" title="">
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater <tr>
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater <td width="260"><img src="<%= contextPath %>/images/dot.gif" width="260" height="245" alt="" /></td>
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater <td width="415" bgcolor="#ffffff" valign="top"><img name="Login.productLogo"
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson src="<%= contextPath %>/images/PrimaryProductName.png" alt="OpenSSO"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater border="0" />
4104e236f71eb5108fcfda6711878a97f6f4a8e7Automatic Updater
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater <form name="realm_form" action="<%=request.getRequestURI()%>"
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater onSubmit="formSubmit(); return false;" method="post">
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater <table border="0" cellspacing="0" cellpadding="0">
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater <tr>
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater <td colspan="2">
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater <img src="<%= contextPath %>/images/dot.gif" width="1" height="25" alt="" />
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater </td>
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater </tr>
da82e232161d67b77df2d67898bdac693f647be1Automatic Updater
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater <!-- Header display -->
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater <tr>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <td nowrap="nowrap"></td>
1d4f4d2db2d69e48fec2dde5c1535853677d22a7Automatic Updater <td><div class="logTxtSvrNam">
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
da82e232161d67b77df2d67898bdac693f647be1Automatic Updater Account Realm Selection
9c446b72069d0ab9f710502f4d7048e50875fccbAutomatic Updater
e85565067cf73f8cc21ee29b11761659f1d47ee9Automatic Updater </div></td>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater </tr>
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater <!-- End of Header display -->
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <!-- text box display -->
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater <tr>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <td nowrap="nowrap"><div class="logLbl">
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater <span class="LblLev2Txt">
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <label for="IDToken1">
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater &nbsp;
da82e232161d67b77df2d67898bdac693f647be1Automatic Updater </label></span></div>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater </td>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater <td><div class="logInp">
7f94d9a8162c9a96b56e66176702b66e79d8e1a2Automatic Updater
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <input type="hidden" name="wreply" value="<%=wreply%>" />
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<%
5ecad47f69b3fd945472ab2900a9ff826a7ce2f6Automatic Updater if ( wctx != null && wctx.length() > 0 ) {
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater%>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <input type="hidden" name="wctx" value="<%=wctx%>" />
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater<%
82447d835d3ff5c658749b4e9b4f66166407b3eaAutomatic Updater }
7262eb86f2b465822206122921e2f357218f0cfdAutomatic Updater%>
96ea71632887c58a9d00f47eb318bf76b35903c3Mark Andrews <select name="realm_list">
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater<%
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater String accountRealmCookieValue = null;
bbb069be941f649228760edcc241122933c066d2Automatic Updater Cookie cookies[] = request.getCookies();
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater if (cookies != null) {
4cda4fd158d6ded5586bacea8c388445d99611eaAutomatic Updater for (int i = 0; i < cookies.length; i++) {
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews if (cookies[i].getName().equals( accountRealmCookieName ))
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater {
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater accountRealmCookieValue = cookies[i].getValue();
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews break;
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater }
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater }
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews }
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews if (debug.messageEnabled()) {
765c97d56ccddc9d7904c7d9ff2e2d825d9687e4Automatic Updater debug.message(jspFile + "Account Realm Cookie: " +
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews accountRealmCookieValue);
cafd3a2b9974fe0a4ab95e0289746062bd958d68Automatic Updater }
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater for (String idpEntityId :
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater metaManager.getAllRemoteIdentityProviderEntities(spRealm))
229ea4644b3a7d9c7fdaa43888e7f55ba01e2ee3Automatic Updater {
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater FederationElement idp =
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updater metaManager.getEntityDescriptor(spRealm,
f7a71eef29bcbf892270460269c79664f600cffdAutomatic Updater idpEntityId);
3e5340279d8875d136a4dd815cccad0044aa2644Automatic Updater IDPSSOConfigElement idpconfig =
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington metaManager.getIDPSSOConfig(spRealm,
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater idpEntityId);
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater if ( metaManager.isTrustedProvider(spRealm,
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater spEntityId, idpEntityId) ) {
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater String issuerName = metaManager.
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater getTokenIssuerName(idp);
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater String displayName =
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater WSFederationMetaUtils.getAttribute(idpconfig,
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson WSFederationConstants.DISPLAY_NAME);
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater
c3fd32ed29e9e419bb56583f4272a506773b1ea0Automatic Updater if (debug.messageEnabled()) {
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater debug.message(jspFile + "account realm key: " +
8711e5c73ca872d59810760af0332194cbdd619bAutomatic Updater issuerName + " display name: " + displayName);
099b86fb8136a7dff81df85cf395978c16eb254cAutomatic Updater }
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater if (displayName == null || displayName.length() == 0){
3857cb6fcabeb79d85de4b3e3e4ab99912b701f8Mark Andrews displayName = issuerName;
572cb2c1c931f6bc6a4a019c103ae88239b0eb96Automatic Updater }
53b4d1cad58e0f63aa8cd8a86c692c75aba7f15aAutomatic Updater%>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews <option value="<%=issuerName%>"
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater <%=((accountRealmCookieValue != null) &&
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson (accountRealmCookieValue.equals(issuerName))?"selected":"")%>>
e2caa7536302de34de6cc04025abcd53dc3a499aAutomatic Updater <%=displayName%>
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater </option>
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater<%
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews }
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews }
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews%>
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews </select>
ca35524ce2b57e6f1b261d23565d1288a355d12fAutomatic Updater
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews </div>
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater </td>
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater </tr>
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews <!-- end of textBox -->
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews <!-- Submit button -->
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews <tr>
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater <td><img src="<%= contextPath %>/images/dot.gif"
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews width="1" height="15" alt="" /></td>
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews <script language="javascript">
3351ccbd5c1961404044f8273d54dad405f53960Mark Andrews markupButton(
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater 'Proceed',
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews "javascript:formSubmit()");
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews </script>
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater </tr>
0b57424d28c9a67018107133f9fbc0a7dcf057e2Mark Andrews <!-- end of Submit button -->
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater <tr>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater <td>&nbsp;</td>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater </tr>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater <tr>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater <td><img src="<%= contextPath %>/images/dot.gif"
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater width="1" height="33" alt="" /></td>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater <td>&nbsp;</td>
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater </tr>
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater </table>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington </form>
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater </td>
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater <td width="45"><img src="<%= contextPath %>/images/dot.gif"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews width="45" height="245" alt="" /></td>
8ccd7da886e93cd490fcb6f4c4e98a6514f35820Automatic Updater </tr>
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater </table>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews </td>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews <td class="LogMidBnd" style="background-image: url(<%= contextPath %>/images/gradlogsides.jpg);
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews background-repeat:repeat-x;background-position:left top;">&nbsp;</td>
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews </tr>
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews <tr class="LogBotBnd" style="background-image: url(<%= contextPath %>/images/gradlogbot.jpg);
06f5acb11f1c32228d93eefd1eb841dbfb1c7f4dAutomatic Updater background-repeat:repeat-x;background-position:left top;">
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater <td>&nbsp;</td>
7f79131f9a8e804b93c57f3c679065cce878b726Automatic Updater <td><div class="logCpy"><span class="logTxtCpy">
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater Copyright © 2005 Sun Microsystems, Inc. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology embodied in the product that is described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and in other countries.U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Use is subject to license terms. This distribution may include materials developed by third parties.Sun, Sun Microsystems and the Sun logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.<br><br>Copyright © 2005 Sun Microsystems, Inc. Tous droits réservés.Sun Microsystems, Inc. détient les droits depropriété intellectuels relatifs à la technologie incorporée dans le produit qui est décrit dans ce document. En particulier, et ce sans limitation, ces droits de propriété intellectuelle peuvent inclure un ou plus des brevets américains listés à l'adresse http://www.sun.com/patents et un ou les brevets supplémentaires ou les applications de brevet en attente aux Etats - Unis et dans les autres pays.L'utilisation est soumise aux termes du contrat de licence.Cette distribution peut comprendre des composants développés par des tierces parties.Sun, Sun Microsystems et le logo Sun sont des marques de fabrique ou des marques déposées de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays.</span></div>
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater </td>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews <td>&nbsp;</td>
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews </tr>
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews </table>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington</body>
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington</html>
b13d89bd89878137c81b36a36596cca3920f27a4Automatic Updater
5ecad47f69b3fd945472ab2900a9ff826a7ce2f6Automatic Updater