From f461a713ce28e434a34dca4e4d1abbfe255ef1ff Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Mon, 6 Oct 2014 19:12:13 +0200 Subject: Add OpenIDP Provider This commit implements all the core functionality needed to expose an OpenID Identity Provider including a framework to dynamycally add extensions. Signed-off-by: Patrick Uiterwijk Signed-off-by: Simo Sorce Reviewed-by: Patrick Uiterwijk --- templates/openid/consent_form.html | 44 ++++++++++++++++++++++++++++++++++++++ templates/openid/userpage.html | 10 +++++++++ templates/openid/xrds.xml | 16 ++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 templates/openid/consent_form.html create mode 100644 templates/openid/userpage.html create mode 100644 templates/openid/xrds.xml (limited to 'templates/openid') diff --git a/templates/openid/consent_form.html b/templates/openid/consent_form.html new file mode 100644 index 0000000..8c3813e --- /dev/null +++ b/templates/openid/consent_form.html @@ -0,0 +1,44 @@ +{% extends "master.html" %} +{% block main %} + +
+

The OpenID realying party {{ trustroot }} is asking + to authorize access for {{ username }}.

+

Please review the authorization details

+
+ + + +{% endblock %} diff --git a/templates/openid/userpage.html b/templates/openid/userpage.html new file mode 100644 index 0000000..db87974 --- /dev/null +++ b/templates/openid/userpage.html @@ -0,0 +1,10 @@ +{% extends "master.html" %} +{% block main %} +
+
+

This is the OpenID landing page for {{ username }}

+

This page is used by the OpenID protocol and has no other use.

+

You can go to the main page instead.

+
+
+{% endblock %} diff --git a/templates/openid/xrds.xml b/templates/openid/xrds.xml new file mode 100644 index 0000000..86b3e0f --- /dev/null +++ b/templates/openid/xrds.xml @@ -0,0 +1,16 @@ + + + + +{%- for t in types %} + {{ t }} +{%- endfor %} +{%- if uri %} + {{ uri }} +{%- endif %} +{%- if localid %} + {{ localid }} +{%- endif %} + + + -- cgit