1 | <html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"> |
---|
2 | <head> |
---|
3 | <replace py:replace="pagehead()"/> |
---|
4 | <!-- |
---|
5 | <script src="${c.baseURL}/js/wmsc.js"></script> |
---|
6 | <script src="${c.baseURL}/js/prototype.js"></script> |
---|
7 | --> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div py:replace="header()"/> |
---|
11 | <div class="decidePageContent" style="text-indent:5px"> |
---|
12 | <?python |
---|
13 | if c.oidRequest.idSelect(): |
---|
14 | userIdentifier = c._authN.username2UserIdentifiers( |
---|
15 | c.environ, |
---|
16 | c.session['username'])[0] |
---|
17 | identityURL = c.urls['url_id']+'/'+userIdentifier |
---|
18 | else: |
---|
19 | identityURL = c.oidRequest.identity |
---|
20 | ?> |
---|
21 | <h2>Login to $c.oidRequest.trust_root?</h2> |
---|
22 | <!-- <div class="loginHdr">Login<span py:replace="helpIcon('fts_help')"/></div> |
---|
23 | <div id="fts_help" class="hidden"> |
---|
24 | <div class="helptxt"> |
---|
25 | <p> |
---|
26 | Although you are logged into this site, you also need |
---|
27 | to decide whether to allow your details to be |
---|
28 | returned to $c.oidRequest.trust_root so that you are |
---|
29 | logged in there too. The details passed back include |
---|
30 | the OpenID identifier given below. The details don't |
---|
31 | include you login password. |
---|
32 | </p> |
---|
33 | </div> |
---|
34 | </div> |
---|
35 | --> |
---|
36 | <form method="POST" action="${c.urls['url_allow']}"> |
---|
37 | <table> |
---|
38 | <input type="hidden" name="identity" value="$identityURL" /> |
---|
39 | <tr> |
---|
40 | <td> |
---|
41 | The website $c.oidRequest.trust_root has requested |
---|
42 | your OpenID identifier: |
---|
43 | </td> |
---|
44 | </tr> |
---|
45 | <tr> |
---|
46 | <td> |
---|
47 | <pre><b>$identityURL</b></pre> |
---|
48 | </td> |
---|
49 | </tr> |
---|
50 | <tr> |
---|
51 | <td> |
---|
52 | Would you like to pass your OpenID credential |
---|
53 | information back to $c.oidRequest.trust_root and |
---|
54 | return to this site? |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | <tr> |
---|
58 | <td align="right"> |
---|
59 | <input type="submit" name="Yes" value="Yes" /> |
---|
60 | <input type="submit" name="No" value="No" /> |
---|
61 | </td> |
---|
62 | </tr> |
---|
63 | <tr> |
---|
64 | <td align="right"> |
---|
65 | <div py:if="c.oidRequest.trust_root not in c.session.get('approved', {})"> |
---|
66 | <input type="checkbox" id="remember" name="remember" value="yes"/> |
---|
67 | <label for="remember">Remember this decision</label> |
---|
68 | </div> |
---|
69 | </td> |
---|
70 | </tr> |
---|
71 | </table> |
---|
72 | </form> |
---|
73 | </div> |
---|
74 | <div py:replace="footer()"/> |
---|
75 | </body> |
---|
76 | </html> |
---|