blob: 53a139c6a97ff1273ec1a8601ee40312f0ae7a0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
<html>
<head>
<title>Django OpenID Example Consumer</title>
<style type="text/css">
div.message {
background: #9f9;
padding: 0.5em;
margin-top: 0.5em;
margin-bottom: 0.5em;
border: 1px solid #555;
font-weight: bold;
}
div.error {
background: #f99;
padding: 0.5em;
margin-top: 0.5em;
margin-bottom: 0.5em;
border: 1px solid #555;
font-weight: bold;
}
div.box {
background: #eee;
border: 1px solid black;
padding: 1em;
}
</style>
</head>
<body>
<div class="box">
<p>
This is an example consumer built for the Django framework. Enter
an OpenID in the box below.
</p>
{% if error %}
<div class="error">{{ error|escape }}</div>
{% endif %}
{% if url %}
<div class="message">
OpenID authentication succeeded; you authenticated as
<a href="{{ url }}">{{ url|escape }}</a>.
<p>
{% if sreg %}
Simple Registration data returned:
<ul>
{% for pair in sreg %}
<li>{{ pair.0 }}: {{ pair.1 }}</li>
{% endfor %}
</ul>
{% else %}
The server returned no Simple Registration data.
{% endif %}
{% if pape %}
{% if pape.auth_policies %}
An authentication policy response contained these policies:
<ul>
{% for uri in pape.auth_policies %}
<li><tt>{{ uri }}</tt></li>
{% endfor %}
</ul>
{% else %}
An authentication policy response was returned, but no
policies were enforced by the server.
{% endif %}
{% else %}
The server returned no authentication policy data (PAPE).
{% endif %}
</p>
</div>
{% endif %}
{% if message %}
<div class="message">
{{ message|escape }}
</div>
{% endif %}
{% if failure_reason %}
<div class="error">
{{ failure_reason|escape }}
</div>
{% endif %}
<form method="post" action="{{ consumer_url }}">
<input type="text" size="40" name="openid_identifier" />
<p>
Request these authentication policies
(<a href="http://openid.net/specs/openid-provider-authentication-policy-extension-1_0-02.html">PAPE</a>):
<table>
{% for pair in pape_policies %}
<tr>
<td><input type="checkbox" name="policy_{{ pair.0 }}" id="id_policy_{{ pair.0 }}" /></td>
<td>
<label for="id_policy_{{ pair.0 }}"><tt>
{{ pair.1 }}
</tt></label>
</td>
</tr>
{% endfor %}
</table>
</p>
<input type="submit" value="Begin" />
</form>
</div>
</body>
</html>
|