source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/templates/ndg/security/wayf.kid @ 3914

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/templates/ndg/security/wayf.kid@3914
Revision 3914, 1.9 KB checked in by pjkersha, 12 years ago (diff)
  • New ndg.security.common.zsi_util.httpproxy.ProxyHTTPConnection class replaces urllib2client - easier to fit into existing ZSI client framework.
  • Further OpenID integration into Single Sign On Service. User now authenticates OK but patches needed to AuthKit? + need to handle return_to URL dynamically according to page visited before WAYF call.
Line 
1<html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
2    <div py:def="trustedSitesList()" class="trustedSitesList" style="text-indent:5px">       
3        <h4> Where are you from? </h4>
4        <p> You can login in at a trusted partner site:
5                <?python
6                # Sort alphabetically
7                providerNames = c.providers.keys()
8                providerNames.sort()
9                ?>
10                <ul py:for="h in providerNames">
11                    <li> <a href="${c.providers[h]}?r=${c.b64encReturnTo}">${h}</a></li>
12                </ul>
13            </p>
14        <!--
15        <p>Before clicking on these links, please check that the links redirect to a site
16        you trust with your security credentials.</p>
17        <p> How can I tell?  For any of the above, following login you will be
18        redirected back to the URL: <a href="${c.returnTo}">${c.returnTo}</a></p>
19        -->
20        </div>
21       
22    <div py:def="openIDSignin()" class="openIDSignin" style="text-indent:5px">
23                <p>Alternatively, sign in with OpenID:</p>
24                <form action="$g.ndg.security.server.ssoservice.cfg.server/verify" method="post">
25                  <table cellspacing="0" border="0" cellpadding="5">
26                    <tr>
27                        <td>OpenID:</td>
28                        <td><input type="text" name="openid" value="" class='openid-identifier'/></td>
29                        <td align="right">
30                        <input type="submit" name="authform" value="Go"/></td>
31                    </tr>
32                  </table>
33                </form>
34        </div>
35
36    <head>
37                <style>
38                        input.openid-identifier {
39                           background: url($g.ndg.security.server.ssoservice.cfg.server/layout/openid-inputicon.gif) no-repeat;
40                           background-color: #fff;
41                           background-position: 0 50%;
42                           padding-left: 18px;
43                        }
44                </style>
45        <replace py:replace="pagehead()"/>
46    </head>
47    <body>
48        <div py:replace="header()"/>
49        <replace py:replace="trustedSitesList()"/>
50        <replace py:replace="openIDSignin()"/>
51        <div py:replace="footer(showLoginStatus=False)"/>
52    </body>
53</html>
Note: See TracBrowser for help on using the repository browser.