aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-06-19 15:24:06 +0200
committerMichał Górny <mgorny@gentoo.org>2013-06-19 15:50:19 +0200
commit0b771c125c4adb57f04b8e09b4623e71efbf7a75 (patch)
tree54e6f66670ce284eb03e6c4f3010064d6d825c45 /okupy/templates
parent[OpenID] Introduce Django/DB backend for python-openid store. (diff)
downloadidentity.gentoo.org-0b771c125c4adb57f04b8e09b4623e71efbf7a75.tar.gz
identity.gentoo.org-0b771c125c4adb57f04b8e09b4623e71efbf7a75.tar.bz2
identity.gentoo.org-0b771c125c4adb57f04b8e09b4623e71efbf7a75.zip
[OpenID] Support minimal site auth.
Diffstat (limited to 'okupy/templates')
-rw-r--r--okupy/templates/openid/auth-site.html42
-rw-r--r--okupy/templates/openid/endpoint.html1
2 files changed, 42 insertions, 1 deletions
diff --git a/okupy/templates/openid/auth-site.html b/okupy/templates/openid/auth-site.html
new file mode 100644
index 0000000..861e7f5
--- /dev/null
+++ b/okupy/templates/openid/auth-site.html
@@ -0,0 +1,42 @@
+{% extends "openid/template.html" %}
+
+{% block title %}Authenticate site :: identity.gentoo.org{% endblock %}
+
+{% block content %}
+ {% if error %}
+ <div class='wnd error'>
+ <h2>Error</h2>
+
+ <p>{{ error }}</p>
+ </div>
+ {% else %}
+ <div class='wnd'>
+ <h2>Authenticate site</h2>
+
+ <p>
+ Would you like to allow the following site to use your
+ listed identity?
+ </p>
+
+ <dl>
+ <dt>Trust root</dt>
+ <dd>{{ request.trust_root }}</dd>
+
+ <dt>Claimed identity</dt>
+ <dd>{{ request.claimed_id }}</dd>
+
+ <dt>Identity</dt>
+ <dd>{{ request.identity }}</dd>
+ </dl>
+
+ <form id="trust" action="" method="POST">
+ {% csrf_token %}
+
+ <input type='submit' name='accept' value='Yes' />
+ <input type='submit' name='reject' value='No' />
+ </form>
+ </div>
+ {% endif %}
+{% endblock %}
+
+{# vim:ft=htmldjango: #}
diff --git a/okupy/templates/openid/endpoint.html b/okupy/templates/openid/endpoint.html
index ac840d0..080854b 100644
--- a/okupy/templates/openid/endpoint.html
+++ b/okupy/templates/openid/endpoint.html
@@ -1,5 +1,4 @@
{% extends "openid/template.html" %}
-{% load webdesign %}
{% block title %}OpenID endpoint :: identity.gentoo.org{% endblock %}