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/master.html | 7 ++++++ templates/openid/consent_form.html | 44 ++++++++++++++++++++++++++++++++++++++ templates/openid/userpage.html | 10 +++++++++ templates/openid/xrds.xml | 16 ++++++++++++++ 4 files changed, 77 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') diff --git a/templates/master.html b/templates/master.html index 21178fc..cf1275a 100644 --- a/templates/master.html +++ b/templates/master.html @@ -8,6 +8,13 @@ + {%- if heads %} + {%- for group, value in heads.items() %} + {%- for head in value %} + {{ head }} + {%- endfor %} + {%- endfor %} + {%- endif %} 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 %} +
+{% 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