diff options
Diffstat (limited to 'baserock_openid_provider/openid_provider/templates/openid_provider/decide.html')
-rw-r--r-- | baserock_openid_provider/openid_provider/templates/openid_provider/decide.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/baserock_openid_provider/openid_provider/templates/openid_provider/decide.html b/baserock_openid_provider/openid_provider/templates/openid_provider/decide.html new file mode 100644 index 00000000..5b87f824 --- /dev/null +++ b/baserock_openid_provider/openid_provider/templates/openid_provider/decide.html @@ -0,0 +1,41 @@ +{% extends "openid_provider/base.html" %} + +{% block content %} +{% ifequal trust_root_valid "Valid" %} + <!-- Trust root has been validated by OpenID 2 mechanism. --> + <p>The site <tt>{{ trust_root|escape }}</tt> has requested verification + of your OpenID.</p> +{% endifequal %} +{% ifequal trust_root_valid "Invalid" %} +<div class="error"> + <p>This request claims to be from {{ trust_root|escape }} but I have + determined that <em>it is a pack of lies</em>. Beware, if you release + information to them, they are likely to do unconscionable things with it, + being the lying liars that they are.</p> + <p>Please tell the <em>real</em> {{ trust_root|escape }} that someone is + trying to abuse your trust in their good name.</p> +</div> +{% endifequal %} +{% ifequal trust_root_valid "Unreachable" %} + <p>The site <tt>{{ trust_root|escape }}</tt> has requested verification + of your OpenID. I have failed to reach it and thus cannot vouch for its + authenticity. Perhaps it is on your local network.</p> +{% endifequal %} +{% ifequal trust_root_valid "DISCOVERY_FAILED" %} + <p>The site <tt>{{ trust_root|escape }}</tt> has requested verification + of your OpenID. However, <tt>{{ trust_root|escape }}</tt> does not + implement OpenID 2.0's relying party verification mechanism. Please use + extra caution in deciding whether to release information to this party, + and ask <tt>{{ trust_root|escape }}</tt> to implement relying party + verification for your future transactions.</p> + <p>You will return to <tt>{{ return_to|escape }}</tt></p> +{% endifequal %} + +<form method="post">{% csrf_token %} +Verify your identity to the relying party? +<br/> +<input type="hidden" name="decide_page" value="True" /> +<input type="submit" value="Yes (Allow)" name="allow" /> +<input type="submit" value="No (Cancel)" name="cancel" /> +</form> +{% endblock %} |