diff --git a/roles/ipsilon/files/templates-new/index.html b/roles/ipsilon/files/templates-new/index.html new file mode 100644 index 0000000000..d217b7a6c9 --- /dev/null +++ b/roles/ipsilon/files/templates-new/index.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} +{% block toptext %} +This is the Federated Open Authentication provider homepage. +{% endblock %} +{% block main %} +You will be redirected to this application whenever another application requires you to authenticate. +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/internalerror.html b/roles/ipsilon/files/templates-new/internalerror.html new file mode 100644 index 0000000000..055e903062 --- /dev/null +++ b/roles/ipsilon/files/templates-new/internalerror.html @@ -0,0 +1,15 @@ +{% extends "layout.html" %} +{% block toptext %} +500 - Internal Server Error +{% endblock %} +{% block main %} + {% if message: %} +

{{ message }}

+ {% else %} +

Ipsilon encountered an unexpected internal error while trying to + fulfill your request.

+ {% endif %} +

Please retry again.

+

If the error persists, contact the server administrator to resolve + the problem.

+{% endblock %} diff --git a/roles/ipsilon/files/templates-new/layout.html b/roles/ipsilon/files/templates-new/layout.html new file mode 100644 index 0000000000..837ccb152d --- /dev/null +++ b/roles/ipsilon/files/templates-new/layout.html @@ -0,0 +1,63 @@ + + + + + {{ title }} + + + + + + + + + {%- if heads %} + {%- for group, value in heads.items() %} + {%- for head in value %} + {{ head | safe }} + {%- endfor %} + {%- endfor %} + {%- endif %} + + +
+
+ logo +
+
+
+
+
+
+
+
+ {% block toptext %}{% endblock %} +
+
+
+
+
+
+ {% block maintitle %}{% endblock %} +
+
+ {% block main %}{% endblock %} +
+
+
+
+
+
+
+
+ + + + diff --git a/roles/ipsilon/files/templates-new/login/form.html b/roles/ipsilon/files/templates-new/login/form.html new file mode 100644 index 0000000000..63ccf30b2f --- /dev/null +++ b/roles/ipsilon/files/templates-new/login/form.html @@ -0,0 +1,35 @@ +{% extends "layout.html" %} +{% block title %}Login{% endblock %} +{% block toptext %} + +

+ {{ login_target }} wants to use your Fedora Account System (FAS) credentials +

+{% endblock %} +{% if error %}

{{error}}

{% endif %} +{% block cardwidths %}col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2{% endblock %} +{% block maintitle %} + login with FAS +{% endblock %} +{% block main %} +
+ +
+
+ +
+
+
+
+ +
+
+
+ +
+
+{% endblock %} + diff --git a/roles/ipsilon/files/templates-new/login/index.html b/roles/ipsilon/files/templates-new/login/index.html new file mode 100644 index 0000000000..14ec837d8d --- /dev/null +++ b/roles/ipsilon/files/templates-new/login/index.html @@ -0,0 +1,11 @@ +{% extends "layout.html" %} +{% block title %}Login{% endblock %} +{% block toptext %} +{{ login_target }} is asking to authenticate using Ipsilon +{% endblock %} +{% block main %} +
+ Redirecting... {{ redirect }} +
+{% endblock %} + diff --git a/roles/ipsilon/files/templates-new/logout.html b/roles/ipsilon/files/templates-new/logout.html new file mode 100644 index 0000000000..d2383d16e1 --- /dev/null +++ b/roles/ipsilon/files/templates-new/logout.html @@ -0,0 +1,13 @@ +{% extends "master.html" %} +{% block toptext %} +Logged out +{% endblock %} +{% block main %} +{% if user.name %} +

Something prevented a successful logout

+

You are still logged in as {{ user.fullname }}

+{% else %} +

Successfully logged out.

+

Return to Home page

+{% endif %} +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/notfound.html b/roles/ipsilon/files/templates-new/notfound.html new file mode 100644 index 0000000000..38203cb0ed --- /dev/null +++ b/roles/ipsilon/files/templates-new/notfound.html @@ -0,0 +1,13 @@ +{% extends "layout.html" %} +{% block toptext %} +404 - Not Found +{% endblock %} +{% block main %} + {% if message: %} +

{{ message }}

+ {% else %} +

This page does not exist.

+ {% endif %} +

If you think this is an error, contact the server administrator to resolve + the problem.

+{% endblock %} diff --git a/roles/ipsilon/files/templates-new/openid/consent_form.html b/roles/ipsilon/files/templates-new/openid/consent_form.html new file mode 100644 index 0000000000..afa9011fef --- /dev/null +++ b/roles/ipsilon/files/templates-new/openid/consent_form.html @@ -0,0 +1,37 @@ +{% extends "layout.html" %} +{% block toptext %} +

{{trustroot}} requests to use the following details from your FAS Account

+{% endblock %} +{% block cardwidths %}col-md-10 col-md-offset-1{% endblock %} +{% block maintitle %}Review the authorization details{% endblock %} +{% block main %} +
+
+ + {% for entry in authz_details|dictsort %} +
+
{{ entry[0] }}
+ {%- if entry[1] is iterable and not entry[1] is string -%} +
{{ entry[1] | join(', ') }}
+ {%- else -%} +
{{ entry[1] }}
+ {%- endif -%} +
+ {% endfor %} + +
+
Remember approval
+
+
+
+

+ + +

+
+
+{% endblock %} diff --git a/roles/ipsilon/files/templates-new/openid/userpage.html b/roles/ipsilon/files/templates-new/openid/userpage.html new file mode 100644 index 0000000000..74ae88a689 --- /dev/null +++ b/roles/ipsilon/files/templates-new/openid/userpage.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} +{% block toptext %} +This is the OpenID page for {{username}}. +{% endblock %} +{% block main %} +This page is primarily used internally +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/openid/xrds.xml b/roles/ipsilon/files/templates-new/openid/xrds.xml new file mode 100644 index 0000000000..86b3e0f849 --- /dev/null +++ b/roles/ipsilon/files/templates-new/openid/xrds.xml @@ -0,0 +1,16 @@ + + + + +{%- for t in types %} + {{ t }} +{%- endfor %} +{%- if uri %} + {{ uri }} +{%- endif %} +{%- if localid %} + {{ localid }} +{%- endif %} + + + diff --git a/roles/ipsilon/files/templates-new/persona/provisioning.html b/roles/ipsilon/files/templates-new/persona/provisioning.html new file mode 100644 index 0000000000..0ced48f48b --- /dev/null +++ b/roles/ipsilon/files/templates-new/persona/provisioning.html @@ -0,0 +1,59 @@ +{% extends "layout.html" %} +{% block toptext %} +This page is used internally +{% endblock %} +{% block main %} + + +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/persona/signin_result.html b/roles/ipsilon/files/templates-new/persona/signin_result.html new file mode 100644 index 0000000000..a2fc18b93b --- /dev/null +++ b/roles/ipsilon/files/templates-new/persona/signin_result.html @@ -0,0 +1,19 @@ +{% extends "layout.html" %} +{% block toptext %} +This page is used internally +{% endblock %} +{% block main %} + + +{% endblock %} diff --git a/roles/ipsilon/files/templates-new/unauthorized.html b/roles/ipsilon/files/templates-new/unauthorized.html new file mode 100644 index 0000000000..97626914d2 --- /dev/null +++ b/roles/ipsilon/files/templates-new/unauthorized.html @@ -0,0 +1,12 @@ +{% extends "layout.html" %} +{% block maintitle %} +401 - Unauthorized +{% endblock %} +{% block main %} + {% if message: %} +

{{ message }}

+ {% else %} +

Authentication was not succesful

+ {% endif %} +

Try to login again

+{% endblock %} diff --git a/roles/ipsilon/tasks/main.yml b/roles/ipsilon/tasks/main.yml index ade68e4e7d..82bbd9bafd 100644 --- a/roles/ipsilon/tasks/main.yml +++ b/roles/ipsilon/tasks/main.yml @@ -33,6 +33,13 @@ copy: src=templates/ dest=/usr/share/ipsilon/templates-fedora owner=ipsilon group=ipsilon mode=0666 + when: env != "staging" + +- name: copy STAGING ipsilon templates + copy: src=templates-new/ + dest=/usr/share/ipsilon/templates-fedora + owner=ipsilon group=ipsilon mode=0666 + when: env == "staging" - name: copy ipsilon ui assets copy: src=ui-fedora/