~canonical-isd-hackers/canonical-identity-provider/sst-changes

« back to all changes in this revision

Viewing changes to identityprovider/templates/consumer/index.html

  • Committer: Danny Tamez
  • Date: 2010-04-21 15:29:24 UTC
  • Revision ID: danny.tamez@canonical.com-20100421152924-lq1m92tstk2iz75a
Canonical SSO Provider (Open Source) - Initial Commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- Copyright 2010 Canonical Ltd.  This software is licensed under the
 
2
GNU Affero General Public License version 3 (see the file  LICENSE). -->
 
3
 
 
4
<!-- This module is based on code from Django OpenID.
 
5
     Please see the license file in thirdparty/django-openid.  -->
 
6
 
 
7
<html>
 
8
  <head>
 
9
    <title>Django OpenID Example Consumer</title>
 
10
<link rel="stylesheet" type="text/css"
 
11
      href="/assets/identityprovider/ubuntu/styles.css"/>
 
12
  </head>
 
13
  <body>
 
14
 
 
15
        <div id="page">
 
16
            <div id="page-outer">
 
17
                <div id="page-inner">
 
18
                    <div id="header">
 
19
                    </div>
 
20
                    <div id="content">
 
21
  <h1 class="main">
 
22
    This is an example consumer embedded in the SSO provider framework
 
23
    for QA purposes only.  You can see this page because you have TESTING=True
 
24
    in your settings.
 
25
  </h1>
 
26
 
 
27
  {% if error %}
 
28
    <div><span class="error">{{ error|escape }}</span></div>
 
29
  {% endif %}
 
30
 
 
31
  {% if url %}
 
32
    <div class="message">
 
33
      OpenID authentication succeeded; you authenticated as
 
34
        <a href="{{ url }}">{{ url|escape }}</a>.
 
35
 
 
36
      <p>
 
37
      {% if sreg %}
 
38
        Simple Registration data returned:
 
39
 
 
40
        <ul>
 
41
        {% for pair in sreg %}
 
42
          <li>{{ pair.0 }}: {{ pair.1 }}</li>
 
43
        {% endfor %}
 
44
        </ul>
 
45
      {% else %}
 
46
        The server returned no Simple Registration data.
 
47
      {% endif %}
 
48
 
 
49
      {% if teams %}
 
50
        You are currently member of the following teams:
 
51
        <ul>
 
52
          {% for team in teams %}
 
53
            <li>{{ team }}</li>
 
54
          {% endfor %}
 
55
        </ul>
 
56
      {% else %}
 
57
        The server returned no teams data.
 
58
      {% endif %}
 
59
      </p>
 
60
    </div>
 
61
  {% endif %}
 
62
 
 
63
  {% if message %}
 
64
    <div class="message">
 
65
      {{ message|escape }}
 
66
    </div>
 
67
  {% endif %}
 
68
 
 
69
  {% if failure_reason %}
 
70
    <div class="error">
 
71
      {{ failure_reason|escape }}
 
72
    </div>
 
73
  {% endif %}
 
74
 
 
75
  <form method="post" action="{{ consumer_url }}">
 
76
    <input type="hidden" name="openid_identifier" value="{{openid}}" />
 
77
 
 
78
    <p>
 
79
    Also request:
 
80
    <table>
 
81
      <tr>
 
82
        <td><input type="checkbox" name="sreg" id="id_sreg" /></td>
 
83
        <td><label for="id_sreg">SREG data</label></td>
 
84
      </tr>
 
85
      <tr>
 
86
        <td />
 
87
        <td>
 
88
          <table>
 
89
            <tr>
 
90
              <td><input type="checkbox" name="sreg_country" id="id_sreg_country" /></td>
 
91
              <td><label for="id_sreg_country">Country</label></td>
 
92
            </tr>
 
93
            <tr>
 
94
              <td><input type="checkbox" name="sreg_dob" id="id_sreg_dob" /></td>
 
95
              <td><label for="id_sreg_dob">Date of Birth</label></td>
 
96
            </tr>
 
97
            <tr>
 
98
              <td><input type="checkbox" name="sreg_gender" id="id_sreg_gender" /></td>
 
99
              <td><label for="id_sreg_gender">Gender</label></td>
 
100
            </tr>
 
101
            <tr>
 
102
              <td><input type="checkbox" name="sreg_language" id="id_sreg_language" /></td>
 
103
              <td><label for="id_sreg_language">Language</label></td>
 
104
            </tr>
 
105
            <tr>
 
106
              <td><input type="checkbox" name="sreg_nickname" id="id_sreg_nickname" /></td>
 
107
              <td><label for="id_sreg_nickname">Nickname</label></td>
 
108
            </tr>
 
109
            <tr>
 
110
              <td><input type="checkbox" name="sreg_postalcode" id="id_sreg_postalcode" /></td>
 
111
              <td><label for="id_sreg_postalcode">Postal Code</label></td>
 
112
            </tr>
 
113
            <tr>
 
114
              <td><input type="checkbox" name="sreg_timezone" id="id_sreg_timezone" /></td>
 
115
              <td><label for="id_sreg_timezone">Time Zone</label></td>
 
116
            </tr>
 
117
          </table>
 
118
        </td>
 
119
      </tr>
 
120
      <tr>
 
121
        <td><input type="checkbox" name="teams" id="id_teams" /></td>
 
122
        <td><label for="id_teams">Teams data</label></td>
 
123
      </tr>
 
124
    </table>
 
125
    </p>
 
126
 
 
127
    <input type="submit" value="Begin" />
 
128
  </form>
 
129
 
 
130
                    </div>
 
131
                </div>
 
132
            </div>
 
133
        </div>
 
134
    </body>
 
135
</html>
 
136
 
 
137
  </body>
 
138
</html>