diff options
Diffstat (limited to 'src/main/webapp/wayf-swamid.jsp')
-rw-r--r-- | src/main/webapp/wayf-swamid.jsp | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/src/main/webapp/wayf-swamid.jsp b/src/main/webapp/wayf-swamid.jsp new file mode 100644 index 0000000..8ed6e45 --- /dev/null +++ b/src/main/webapp/wayf-swamid.jsp @@ -0,0 +1,173 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +<%@ page contentType="text/html;charset=UTF-8" %> +<html> + +<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> +<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> + +<%request.setCharacterEncoding("UTF-8");%> +<%response.setCharacterEncoding("UTF-8");%> + +<jsp:useBean id="requestURL" scope="request" class="java.lang.String"/> + +<logic:notPresent name="entityID" scope="request"> +<logic:notPresent name="shire" scope="request"> + +<jsp:forward page = "wayferror-swamid.jsp"/> +</logic:notPresent> +</logic:notPresent> + + +<head> + <title>Identity Provider Selection</title> + <link rel="stylesheet" title="normal" type="text/css" href="wayf-swamid.css"/> + <script type="text/javascript" charset="utf-8"> + var is_ssl = ("https:" == document.location.protocol); + var asset_host = is_ssl ? "https://s3.amazonaws.com/getsatisfaction.com/" : "http://s3.amazonaws.com/getsatisfaction.com/"; + document.write(unescape("%3Cscript src='" + asset_host + "javascripts/feedback-v2.js' type='text/javascript'%3E%3C/script%3E")); +</script><script type="text/javascript" charset="utf-8"> + var feedback_widget_options = {}; + + feedback_widget_options.display = "overlay"; + feedback_widget_options.company = "sunet"; + feedback_widget_options.placement = "right"; + feedback_widget_options.color = "#222"; + feedback_widget_options.style = "idea"; + feedback_widget_options.product = "sunet_swamid"; + + + + feedback_widget_options.limit = "3"; + + GSFN.feedback_widget.prototype.local_base_url = "http://community.sunet.se"; + GSFN.feedback_widget.prototype.local_ssl_base_url = "http://community.sunet.se"; + + + var feedback_widget = new GSFN.feedback_widget(feedback_widget_options); +</script> +</head> + +<body> + <div id="container"> + <div class="head"> + <img src="images/swami2.png" alt="SWAMI logotype"/> + </div> + + <div class="content"> + <h1>Authentication required</h1> + <div class="selector"> + <div class="selector-left"> + <h2>Select your identity provider from the list</h2> + + <logic:present name="sites" scope="request"><logic:notPresent name="siteLists" scope="request"> + <form id="originform" method="get" action="<bean:write name="requestURL" />"> + <logic:notPresent name="entityID" scope="request"> + <input type="hidden" name="shire" value="<bean:write name="shire" />" /> + <input type="hidden" name="target" value="<bean:write name="target" />" /> + <input type="hidden" name="providerId" value="<bean:write name="providerId" />" /> + <logic:present name="time" scope="request"> + <input type="hidden" name="time" value="<bean:write name="time" />" /> + </logic:present> + </logic:notPresent> + <logic:present name="entityID" scope="request"> + <input type="hidden" name="entityID" value="<bean:write name="entityID" />" /> + <input type="hidden" name="returnX" value="<bean:write name="returnX" />" /> + <input type="hidden" name="returnIDParam" value="<bean:write name="returnIDParam" />" /> + </logic:present> + <input type="hidden" name="action" value="selection" /> + <!-- input type="text" id="originSearch" name="string" value="" tabindex="25" size="30"/ --> + <select name="origin" id="origin" tabindex="40"> + <logic:iterate id="site" name="sites"> + <option value="<jsp:getProperty name="site" property="name" />"> + <jsp:getProperty name="site" property="displayName" /> + </option> + </logic:iterate> + </select> + <input type="submit" value="Select" tabindex="50" /> + <select name="cache" tabindex="60"> + <option value="false"> Do not remember</option> + <option value="session" selected="selected"> Remember for session</option> + <option value="perm"> Remember for a week</option> + </select> + </form> + </logic:notPresent></logic:present> + </div> + <div class="selector-right"> + <logic:present name="cookieList" scope="request"> + <h2>Recently used</h2> + <ul> + <logic:iterate id="site" name="cookieList"> + <li> + <logic:present name="entityID" scope="request"> + + <bean:define id="returnIDParam" name="returnIDParam"/> + <bean:define id="ei" name="entityID" /> + <bean:define id="re" name="returnX"/> + + <a href="<bean:write name="requestURL" />?entityID=<%= java.net.URLEncoder.encode(ei.toString(), "utf-8") %>&return=<%= java.net.URLEncoder.encode(re.toString(), "utf-8") %>&returnIDxParam=<%= java.net.URLEncoder.encode( returnIDParam.toString(), "utf-8" ) %>&cache=perm&action=selection&origin=<jsp:getProperty name="site" property="name" />"> + <jsp:getProperty name="site" property="displayName" /> + </a> + </logic:present> + <logic:notPresent name="entityID" scope="request"> + <bean:define id="targ" name="target" /> + <bean:define id="shire" name="shire" /> + <bean:define id="pid" name="providerId" /> + <a href="<bean:write name="requestURL" />?target=<%= java.net.URLEncoder.encode(targ.toString(),"utf-8") %>&shire=<%= java.net.URLEncoder.encode(shire.toString(),"utf-8") %>&providerId=<%= java.net.URLEncoder.encode(pid.toString(),"utf-8") %>&time=<bean:write name="time" />&cache=perm&action=selection&origin=<jsp:getProperty name="site" property="name" />"> + <jsp:getProperty name="site" property="displayName" /> + </a> + </logic:notPresent> + </li> + </logic:iterate> + </ul> + + <form method="get" action="ClearCache.wayf"> + <logic:notPresent name="entityID" scope="request"> + <input type="hidden" name="shire" value="<bean:write name="shire" />" /> + <input type="hidden" name="target" value="<bean:write name="target" />" /> + <input type="hidden" name="providerId" value="<bean:write name="providerId" />" /> + <logic:present name="time" scope="request"> + <input type="hidden" name="time" value="<bean:write name="time" />" /> + </logic:present> + </logic:notPresent> + <logic:present name="entityID" scope="request"> + <input type="hidden" name="entityID" value="<bean:write name="entityID" />" /> + <input type="hidden" name="returnX" value="<bean:write name="returnX" />" /> + <input type="hidden" name="returnIDParam" value="<bean:write name="returnIDParam" />" /> + </logic:present> + <input tabindex="20" type="submit" value="Clear List" /> + </form> + </logic:present> + </div> + <div style="clear: both;"></div> + </div> + + <div class="content-left"> + <img src="images/swedish-flag.png" alt="Swedish flag"/> + <h2>Välj en identitetsutgivare</h2> + <p>Tjänsten du försöker nå kräver att du väljer en identitetsutgivare (tex ditt universitet/högskola) från ovanstående lista innan du kan logga in. </p> + <p><a title="Länken öppnas i ett nytt fönster" href="http://www.swamid.se/pub/jsp/polopoly.jsp?d=6940&a=25649" class="external-link" rel="external">Vad är en identitetsutgivare?</a><br/> + <a title="Länken öppnas i ett nytt fönster" href="http://www.swamid.se/pub/jsp/polopoly.jsp?d=6940" class="external-link" rel="external">Vad är SWAMID?</a></p> + </div> + <div class="content-right"> + <img src="images/flagga_uk.gif" alt="English flag"/> + <h2>Choose an identity provider</h2> + <p>The Service you are trying to access requires you to choose an identityprovider (e.g. your university/college) from the list above before you can log in. </p> + <p><a title="Link will open in a new window" href="http://www.swamid.se/pub/jsp/polopoly.jsp?d=6940&a=25650" target="wayf-info" class="external-link" rel="external">What is an identity provider?</a><br/> + <a title="Link will open in a new window" href="http://www.swamid.se/pub/jsp/polopoly.jsp?d=6940" class="external-link" target="wayf-info" rel="external">What is SWAMID?</a> + </p> + </div> + </div> + + <div class="footer"> + <p class="text"> +The <a href="http://www.swamid.se">SWAMID federation</a> is a <a href="http://www.sunet.se">SUNET</a> service, developed by +the <a href="http://www.swami.se">Swedish Alliance for Middleware Infrastructure</a>. If you need assistance with your identity, contact your +primary identity provider. If you need assistance with the service you are trying to use, contact the owner of that service. To get in touch +with the SWAMID operations team use the feedback tab on this page. + </p> + </div> +</div> +</body> +</html> |