realmSelection.jsp revision e6c3a72a023407f5d1fface64356e1cc81f1af31
0N/A $Id: realmSelection.jsp,v 1.10 2009/10/29 00:00:00 exu Exp $
857N/A import="java.util.*"
5636N/A import="org.owasp.esapi.ESAPI"
3824N/A Debug debug = WSFederationUtils.debug;
3824N/A String jspFile = "realmSelection.jsp: ";
3824N/A String wreply = (String)request.getParameter("wreply");
3824N/A if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + wreply, wreply,
3842N/A String wctx = (String)request.getParameter("wctx");
3842N/A if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + wctx, wctx,
6332N/A if (debug.messageEnabled()) {
6332N/A debug.message(jspFile + "wreply: "+wreply);
6332N/A String spMetaAlias = WSFederationMetaUtils.getMetaAliasByUri(
6332N/A if ( spMetaAlias==null || spMetaAlias.length()==0) {
1298N/A /* TODO SAML2Utils.bundle.getString("nullSPEntityID") */);
2976N/A metaManager.getEntityByMetaAlias(spMetaAlias);
4495N/A String spRealm = WSFederationMetaUtils.getRealmByMetaAlias(spMetaAlias);
1298N/A metaManager.getSPSSOConfig(spRealm,spEntityId));
961N/A String selectedRealm = (String)request.getParameter("realm_list");
961N/A if (!ESAPI.validator().isValidInput("HTTP Parameter Value: " + selectedRealm,
961N/A if (debug.messageEnabled()) {
961N/A debug.message(jspFile + "Selected realm: " + selectedRealm);
1298N/A url.append("?whr=");
3824N/A url.append(selectedRealm);
832N/A url.append("&wctx=");
961N/A url.append(wctx);
3196N/A if (debug.messageEnabled()) {
3196N/A debug.message(jspFile + "Redirecting to: "+url);
5065N/A String contextPath = request.getContextPath();
857N/A<script language="JavaScript" src="<%= contextPath %>/js/browserVersion.js"></script>
961N/A<script language="JavaScript" src="<%= contextPath %>/js/auth.js"></script>
961N/A var frm = document.forms['realm_form'];
961N/A frm.submit();
828N/A<script type="text/javascript"><!--// Empty script so IE5.0 Windows will draw table and button borders
961N/A <td width="50%"><img src="<%= contextPath %>/images/dot.gif" width="1" height="1" alt="" /></td>
3824N/A <td><img src="<%= contextPath %>/images/dot.gif" width="728" height="1" alt="" /></td>
3824N/A <td width="50%"><img src="<%= contextPath %>/images/dot.gif" width="1" height="1" alt="" /></td>
828N/A <tr class="LogTopBnd" style="background-image: url(<%= contextPath %>/images/gradlogtop.jpg);
5065N/A <td><img src="<%= contextPath %>/images/dot.gif" width="1" height="30" alt="" /></td>
<td class="LogMidBnd" style="background-image: url(<%= contextPath %>/images/gradlogsides.jpg);
<td class="LogCntTd" style="background-image: url(<%= contextPath %>/images/login-backimage-long.jpg);
background-repeat:no-repeat;background-position:left top;" height="435" align="center" valign="middle">
<table border="0" background="<%= contextPath %>/images/dot.gif" cellpadding="0" cellspacing="0"
<td width="260"><img src="<%= contextPath %>/images/dot.gif" width="260" height="245" alt="" /></td>
<form name="realm_form" action="<%=request.getRequestURI()%>"
<img src="<%= contextPath %>/images/dot.gif" width="1" height="25" alt="" />
if ( wctx != null && wctx.length() > 0 ) {
Cookie cookies[] = request.getCookies();
for (int i = 0; i < cookies.length; i++) {
if (debug.messageEnabled()) {
debug.message(jspFile + "Account Realm Cookie: " +
metaManager.getEntityDescriptor(spRealm,
metaManager.getIDPSSOConfig(spRealm,
if ( metaManager.isTrustedProvider(spRealm,
WSFederationMetaUtils.getAttribute(idpconfig,
if (debug.messageEnabled()) {
debug.message(jspFile + "account realm key: " +
if (displayName == null || displayName.length() == 0){
(accountRealmCookieValue.equals(issuerName))?"selected":"")%>>
<td><img src="<%= contextPath %>/images/dot.gif"
<td><img src="<%= contextPath %>/images/dot.gif"
<td width="45"><img src="<%= contextPath %>/images/dot.gif"
<td class="LogMidBnd" style="background-image: url(<%= contextPath %>/images/gradlogsides.jpg);
<tr class="LogBotBnd" style="background-image: url(<%= contextPath %>/images/gradlogbot.jpg);