summaryrefslogtreecommitdiff
path: root/src/main/webapp/wayf-sunet.jsp
blob: f172a8172a1e9d9629711028e576605723df1c03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<?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 href="css/reset.css" rel="stylesheet" type="text/css" />
    <link href="css/sunet.css" rel="stylesheet" type="text/css" />
    <link href="wayf-sunet.css" rel="stylesheet" type="text/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 class="wCont">
         <div class="header">
            <a href="#" id="logo">&nbsp;</a>
            <div id="menuContL"></div>
            <div id="menuContR"></div>
         </div>

         <div class="content">
           <div class="contL">
             <h1>Authentication required</h1>
             <p class="intro">Select your identity provider from the list</p>

             <logic:present name="sites" scope="request"><logic:notPresent name="siteLists" scope="request">
             <form style="margin-bottom: 10px;" id="originform" method="get" action="<bean:write name="requestURL" />">
              <div>
                <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" id="originsubmit" 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>
              </div>
             </form>
             </logic:notPresent></logic:present>
             <div class="blockCont">
	       <div class="infoBlock">
                  <img src="images/swedish-flag.png" alt="Swedish flag"></img>
                  <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 nedanstå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&amp;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="infoBlock">
                  <img src="images/flagga_uk.gif" alt="English flag"></img>
                  <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 below 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&amp;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 class="infoBlock">
    <logic:present name="cookieList" scope="request">
        <img src="images/flagga_uk.gif" alt="English flag"></img>
        <h2>Recently used identity providers</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 tabindex="10" 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 tabindex="10" 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" >
          <div>
          <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>
          <br/>
          <input tabindex="20" type="submit" value="Clear List" />
          </div>
        </form>

       </logic:present>
               </div>
             </div>
             <img class="fr" src="img/globe.jpg" style="clear: both;"></img>
             <div class="clr"/>


    </div>

                        <div style="display:none;" class="contR"></div>
                        <div class="clr"></div>
                </div>
        </div>
        <div class="clr"></div>
   </div>
   <div class="push"></div>
   <div class="footer">
        <div class="wCont">
                <div id="footerText">
                  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.
                </div>
        </div>
   </div>
</body>
</html>