source: TI12-security/trunk/NDGSecurity/python/Tests/openidaxtest/data/templates/signin.html.py @ 6440

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg-security/TI12-security/trunk/NDGSecurity/python/Tests/openidaxtest/data/templates/signin.html.py@6440
Revision 6440, 2.4 KB checked in by pjkersha, 11 years ago (diff)
  • #1088 Important fix to AuthnRedirectResponseMiddleware? to set redirect ONLY when SSL client authentication has just succeeded in the upstream middleware AuthKitSSLAuthnMiddleware. This bug was causing the browser to redirect to the wrong place following OpenID sign in in the case where the user is already logged into their provider and selects a new relying party to sign into.
    • Improvements to Provider decide page interface: leave out messages about attributes that the provider can't retrieve for the RP. Also included NDG style help icon.
Line 
1from mako import runtime, filters, cache
2UNDEFINED = runtime.UNDEFINED
3__M_dict_builtin = dict
4__M_locals_builtin = locals
5_magic_number = 5
6_modified_time = 1263997576.021358
7_template_filename='/home/pjkersha/workspace/ndg_security_python/Tests/openidaxtest/openidaxtest/templates/signin.html'
8_template_uri='signin.html'
9_template_cache=cache.Cache(__name__, _modified_time)
10_source_encoding='utf-8'
11from webhelpers.html import escape
12_exports = ['heading', 'title']
13
14
15def _mako_get_namespace(context, name):
16    try:
17        return context.namespaces[(__name__, name)]
18    except KeyError:
19        _mako_generate_namespaces(context)
20        return context.namespaces[(__name__, name)]
21def _mako_generate_namespaces(context):
22    pass
23def _mako_inherit(template, context):
24    _mako_generate_namespaces(context)
25    return runtime._inherit_from(context, 'index.html', _template_uri)
26def render_body(context,**pageargs):
27    context.caller_stack._push_frame()
28    try:
29        __M_locals = __M_dict_builtin(pageargs=pageargs)
30        h = context.get('h', UNDEFINED)
31        __M_writer = context.writer()
32        # SOURCE LINE 1
33        __M_writer(u'\n\n')
34        # SOURCE LINE 3
35        __M_writer(u'\n')
36        # SOURCE LINE 4
37        __M_writer(u'\n\n')
38        # SOURCE LINE 6
39        __M_writer(escape(h.form_start('%s', method="post")))
40        __M_writer(u'\n')
41        # SOURCE LINE 7
42        __M_writer(escape(h.field(
43"Username",
44h.text(name='username'),
45)))
46        # SOURCE LINE 10
47        __M_writer(u'\n')
48        # SOURCE LINE 11
49        __M_writer(escape(h.field(
50"Password",
51h.password(name='password'),
52)))
53        # SOURCE LINE 14
54        __M_writer(u'\n')
55        # SOURCE LINE 15
56        __M_writer(escape(h.field(field=h.submit(value="Sign in", name='submit'))))
57        __M_writer(u'\n')
58        # SOURCE LINE 16
59        __M_writer(escape(h.form_end()))
60        return ''
61    finally:
62        context.caller_stack._pop_frame()
63
64
65def render_heading(context):
66    context.caller_stack._push_frame()
67    try:
68        __M_writer = context.writer()
69        # SOURCE LINE 4
70        __M_writer(u'<h1>Sign In</h1>')
71        return ''
72    finally:
73        context.caller_stack._pop_frame()
74
75
76def render_title(context):
77    context.caller_stack._push_frame()
78    try:
79        __M_writer = context.writer()
80        # SOURCE LINE 3
81        __M_writer(u'Sign In')
82        return ''
83    finally:
84        context.caller_stack._pop_frame()
85
86
Note: See TracBrowser for help on using the repository browser.