source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/login.kid @ 2748

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/templates/login.kid@2748
Revision 2748, 2.2 KB checked in by pjkersha, 13 years ago (diff)

called by HandleSecurity? function. Needs testing and fixes - see TODOs

ows_server/ows_server/config/ndgDiscovery.config:

  • added a section for security including WS-Security and SSL PKI settings.

ows_server/ows_server/config/routing.py:

  • added entry for login handling

ws_server/ows_server/controllers/login.py:

  • security web services integrated. TODO: credentials passing across http

redirect

ows_server/ows_server/controllers/logout.py:

  • security WS calls integrated

ows_server/ows_server/templates/ndgPage.kid:

  • fix to display of roles

ows_server/ows_server/templates/login.kid:

  • new page for login
Line 
1<html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
2    <head py:replace="pagehead(0)"/>
3    <body>
4        <div py:replace="header()"/>
5                <table cellspacing="0" border="0" cellpadding="5">
6                <tbody>
7                <tr>
8                <td><h4>Login</h4></td>
9        </tr>
10        <tr>
11                        <span py:replace="loginForm()"/>
12                </tr>
13                </tbody>
14                </table>
15                ${c.xml}
16                <div py:replace="footer()"/>
17    </body>
18   
19    <span py:def="loginForm()" class="loginForm">
20                <form action="/getCredentials?r=${c.returnTo}" method="POST">   
21                <table cellspacing="0" border="0" cellpadding="5">
22                <tbody>
23                <tr>
24                        <td>Username:</td>
25                        <td><input type="text" name="username" value=""/></td>
26                </tr>
27                <tr>
28                        <td>Pass-phrase:</td>
29                        <td><input type="password" name="passphrase"/></td>
30                </tr>
31                <tr>
32                        <td colspan="2" align="right">
33                        <input type="submit" value="Login"/></td>
34                </tr>
35                </tbody>
36                </table>
37                </form>
38        </span>
39       
40        <div py:def="footer()" id="Footer">
41        <center><table><tbody>
42            <tr>
43                <td align="center" width="60%">
44                    <table><tbody>
45                    <tr><td><span py:replace="linkimage(g.ndgLink,g.ndgImage,'NDG')"/></td>
46                    <td> This portal is a product of the <a href="http://ndg.nerc.ac.uk"> NERC DataGrid</a>
47                    Not all functionality is completely implemented, bugs and problems are expected </td>
48                    </tr>
49                    </tbody></table>
50                </td>
51                <td width="40%" align="center">
52                    <div id="loginStatus">
53                        <!--! now we choose one of the next two (logged in or not) -->
54                        <div py:if="'ndgSec' in session"><table><tbody><tr><td> User [${session['ndgSec']['u']}] logged in
55                        at [${session['ndgSec']['h']}] with roles [${session['ndgSec']['r']}]</td><td>
56                        &nbsp;<span py:replace="logOut()"/></td></tr></tbody></table></div>
57                        <div py:if="'ndgSec' not in session"></div>
58                    </div>
59                </td>
60                <td><span py:replace="linkimage(g.stfcLink,g.stfcImage,'Hosted by the STFC CEDA')"/></td>
61            </tr>
62        </tbody></table></center>
63    </div>
64</html>
Note: See TracBrowser for help on using the repository browser.