Skip to content
Snippets Groups Projects
Commit a510a67f authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Twigification authX509 done.

parent 8bb0248d
No related branches found
No related tags found
No related merge requests found
......@@ -69,10 +69,13 @@ class sspmod_authX509_Auth_Source_X509userCert extends SimpleSAML_Auth_Source
public function authFailed(&$state)
{
$config = SimpleSAML_Configuration::getInstance();
$errorcodes = SimpleSAML\Error\ErrorCodes::getAllErrorCodeMessages();
$t = new SimpleSAML_XHTML_Template($config, 'authX509:X509error.php');
$t->data['loginurl'] = SimpleSAML\Utils\HTTP::getSelfURL();
$t->data['errorcode'] = $state['authX509.error'];
$t->data['errortitle'] = $errorcodes['title'][$state['authX509.error']];
$t->data['errordescr'] = $errorcodes['descr'][$state['authX509.error']];
$t->show();
exit();
}
......
......@@ -40,14 +40,14 @@ msgid "Please renew your certificate in time."
msgstr "Forny venligst dit certifikat i tide."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Dit certifikat udløber om %days% dage."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Dit certifikat udløber om %daysleft% dage."
msgid "X509 certificate authentication"
msgstr "X509 certifikat authentifikation"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgid "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgstr "<a href='%renewurl%'>Forny</a>, venligst dit certifikat før det udløber."
msgid "Proceed"
......
......@@ -42,14 +42,14 @@ msgid "Please renew your certificate in time."
msgstr "Παρακαλείστε να προχωρήσετε σε ανανέωση του πιστοποιητικού σας έγκαιρα."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Η ισχύς του πιστοποιητικού σας θα λήξει σε %days%."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Η ισχύς του πιστοποιητικού σας θα λήξει σε %daysleft%."
msgid "X509 certificate authentication"
msgstr "Ταυτοποίηση μέσω πιστοποιητικού X.509"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgid "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgstr ""
"Παρακαλείστε να προχωρήσετε σε <a href=‘%renewurl%’>ανανέωση</a> του "
"πιστοποιητικού σας έγκαιρα."
......
......@@ -40,15 +40,15 @@ msgid "Please renew your certificate in time."
msgstr "Please renew your certificate in time."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Your certificate will expire in %days% days."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Your certificate will expire in %daysleft% days."
msgid "X509 certificate authentication"
msgstr "X509 certificate authentication"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgstr "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgid "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgstr "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgid "Proceed"
msgstr "Proceed"
......
......@@ -42,15 +42,15 @@ msgid "Please renew your certificate in time."
msgstr "Por favor, renueve su certificado a tiempo."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Su certificado caduca en %days% días."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Su certificado caduca en %daysleft% días."
msgid "X509 certificate authentication"
msgstr "Autenticación mediante certificado X509"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgstr "Por favor, <a href=‘%renewurl%’>renueve</a> su certificado a tiempo."
msgid "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgstr "Por favor, <a href=‘%renewurl%’>renueve su certificado</a> a tiempo."
msgid "Proceed"
msgstr "Continuar"
......
......@@ -42,14 +42,14 @@ msgid "Please renew your certificate in time."
msgstr "Vennligst forny sertifikatet ditt før det utløper."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Sertifikatet ditt vil utløpe om %days% dager."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Sertifikatet ditt vil utløpe om %daysleft% dager."
msgid "X509 certificate authentication"
msgstr "X509 sertifikatautentisering"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgid "Please <a href='%renewurl%'>renew your certificate</a> in time."
msgstr ""
"Vennligst <a href=‘%renewurl%’>forny</a> sertifikatet ditt før det "
"utløper."
......
......@@ -42,15 +42,15 @@ msgid "Please renew your certificate in time."
msgstr "Vervang tijdig je certificaat."
#, python-format
msgid "Your certificate will expire in %days% days."
msgstr "Je certificaat verloopt over %days% dagen."
msgid "Your certificate will expire in %daysleft% days."
msgstr "Je certificaat verloopt over %daysleft% dagen."
msgid "X509 certificate authentication"
msgstr "Authenticatie via X509-certificaat"
#, python-format
msgid "Please <a href='%renewurl%'>renew</a> your certificate in time."
msgstr "<a href='%renewurl%'>Vervang</a> tijdig je certificaat."
msgid "Please <a href=\"%renewurl%\">renew your certificate</a> in time."
msgstr "<a href=\"%renewurl%\">Vervang tijdig je certificaat</a>."
msgid "Proceed"
msgstr "Verder"
......
{% set pagetitle = 'X509 certificate authentication'|trans %}
{% extends "base.twig" %}
{% block content %}
{% if errorcode -%}
<h2>{% trans 'Error' %}</h2>
<h3>{% trans errortitle %}</h3>
<p>{% trans errordescr %}</p>
{% endif -%}
<h2>{% trans 'X509 certificate authentication' %}</h2>
<p>{% trans 'X509 certificate authentication is required to access this service.' %}</p>
<a href="{{ loginurl }}">
{% trans 'Login' %}
</a>
{% endblock %}
{% set autofocus = 'proceedbutton' %}
{% extends "base.twig" %}
{% block content %}
<h2>{% trans 'Your certificate is about to expire.' %}</h2>
<form action="{{ target | escape }}">
{% for name, value in data -%}
<input type="hidden" name="{{ name }}" value="{{ value }}" />
{%- endfor %}
<p>{% trans %}Your certificate will expire in {{ daysleft }} days.{% endtrans %}</p>
{% if renewurl -%}
<p>{% trans %}Please <a href="{{ renewurl }}">renew your certificate</a> in time.{% endtrans %}</p>
{% else -%}
<p>{% trans 'Please renew your certificate in time.' %}</p>
{% endif -%}
<p><input type="submit" name="proceed" id="proceedbutton" value="{% trans 'Proceed' %}" /></p>
</form>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment