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

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@3918
Revision 3918, 1.7 KB checked in by pjkersha, 12 years ago (diff)

Initial Integration of Single Sign On Service with OpenID and Pylons AuthKit?:

  • WAYF now contains an OpenID textbox for sign in
  • No role integration carried out yet - OpenID has no better privileges than an anonymous user(!)
  • Integrated into Authkit - requires lots of config settings in pylons ini file
  • HTTP 401 error get redirected automatically to WAYF
  • Need to create an AuthKit? egg from SVN 151 checkout - will put on NDG dist
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 = g.ndg.security.server.sso.state.trustedIdPs.keys()
8                providerNames.sort()
9                ?>
10                <ul py:for="h in providerNames">
11                    <li> <a href="${g.ndg.security.server.sso.state.trustedIdPs[h]}?r=${g.ndg.security.common.sso.state.b64encReturnToURL}">${h}</a></li>
12                </ul>
13            </p>
14        </div>
15       
16    <div py:def="openIDSignin()" class="openIDSignin" style="text-indent:5px">
17                <p>Alternatively, sign in with OpenID:</p>
18                <form action="$g.ndg.security.server.sso.cfg.server/verify" method="post">
19                  <table cellspacing="0" border="0" cellpadding="5">
20                    <tr>
21                        <td>OpenID:</td>
22                        <td><input type="text" name="openid" value="" class='openid-identifier'/></td>
23                        <td align="right">
24                        <input type="submit" name="authform" value="Go"/></td>
25                    </tr>
26                  </table>
27                </form>
28        </div>
29
30    <head>
31                <style>
32                        input.openid-identifier {
33                           background: url($g.ndg.security.server.sso.cfg.server/layout/openid-inputicon.gif) no-repeat;
34                           background-color: #fff;
35                           background-position: 0 50%;
36                           padding-left: 18px;
37                        }
38                </style>
39        <replace py:replace="pagehead()"/>
40    </head>
41    <body>
42        <div py:replace="header()"/>
43        <replace py:replace="trustedSitesList()"/>
44        <replace py:replace="openIDSignin()"/>
45        <div py:replace="footer(showLoginStatus=False)"/>
46    </body>
47</html>
Note: See TracBrowser for help on using the repository browser.