Commit 9b389d90 authored by Xavier Guimard's avatar Xavier Guimard

OIDC Consents display (#826)

TODO: Ajax to remove a consent
parent bf1cf4c4
......@@ -567,6 +567,7 @@
"portalDisplayChangePassword": "تغيير كلمة المرور",
"portalDisplayLoginHistory": "سجل تسجيل الدخول",
"portalDisplayLogout": "تسجيل الخروج",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayRegister": "تسجيل حساب جديد",
"portalDisplayResetPassword": "إعادة تعيين كلمة المرور",
"portalErrorOnExpiredSession": "عرض الخطأ في الجلسة المنتهية صلحيتها",
......
......@@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Login History",
"portalDisplayLogout": "Logout",
"portalDisplayRegister": "Register new account",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Reset password",
"portalErrorOnExpiredSession": "Show error on expired session",
"portalErrorOnMailNotFound": "Show error on mail not found",
......
......@@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Historique des connexions",
"portalDisplayLogout": "Déconnexion",
"portalDisplayRegister": "Création d'un nouveau compte",
"portalDisplayOidcConsents": "Accords OIDC",
"portalDisplayResetPassword": "Réinitialisation de mot de passe",
"portalErrorOnExpiredSession": "Affiche une erreur si la session est expirée",
"portalErrorOnMailNotFound": "Affiche une erreur si le mail n'est pas trouvé",
......
......@@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Cronologia login",
"portalDisplayLogout": "Logout",
"portalDisplayRegister": "Registra nuovo account",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Reimposta password",
"portalErrorOnExpiredSession": "Mostra errore nella sessione scaduta",
"portalErrorOnMailNotFound": "Mostra errore sulla posta non trovata",
......
......@@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Lịch sử đăng nhập",
"portalDisplayLogout": "Đăng xuất",
"portalDisplayRegister": "Đăng ký tài khoản mới",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Đặt lại mật khẩu",
"portalErrorOnExpiredSession": "Show error on expired session",
"portalErrorOnMailNotFound": "Show error on mail not found",
......
......@@ -461,4 +461,17 @@ sub mkSessionArray {
return $tmp;
}
sub mkOidcConsent {
my ( $self, $session ) = @_;
my $tmp .=
'<table class="info"><thead><tr><th trspan="service"></th></tr></thead>'
. '<tbody><tr>';
# TODO: add JS to remove consent
$tmp .= "<tr><td>$_</td></tr>"
foreach ( split /,/, $session->{_oidcConnectedRP} );
$tmp .= '</tbody></table>';
return $tmp;
}
1;
......@@ -126,6 +126,10 @@ sub displayModules {
$req->{sessionInfo}->{_loginHistory}->{failedLogin},
"", 0, 1 );
}
elsif ( $module->[0] eq 'OidcConsents' ) {
$moduleHash->{'OIDC_CONSENTS'} =
$self->p->mkOidcConsent( $req->sessionInfo );
}
push @$displayModules, $moduleHash;
}
}
......
......@@ -180,6 +180,7 @@
"resetPwd":"إعادة تعيين كلمة المرور الخاصة بي",
"rightsReloadNeedsLogout": " إعادة تحميل الحقوق تحتاج إلى تسجيل الخروج وتسجيل الدخول مرة أخرى",
"selectIdP":"اختر موفر الهوية الخاص بك",
"service":"Service",
"sendPwd":"أرسل لي كلمة مرور جديدة",
"serverError":"يحدث خطأ في الخادم",
"serviceProvidedBy":"الخدمة المقدمة من قبل",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Réinitialiser mon mot de passe",
"rightsReloadNeedsLogout": "Le rechargement des droits nécessite une déconnexion",
"selectIdP":"Choisissez votre fournisseur d'identité",
"service":"Service",
"sendPwd":"Envoyez-moi un nouveau mot de passe",
"serverError":"Une erreur est survenue sur le serveur",
"serviceProvidedBy":"Ce service est fourni par",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reimpostare la password",
"rightsReloadNeedsLogout": "Le ricariche dei diritti necessitano di disconnettersi e di riconnettersi",
"selectIdP":"Seleziona il tuo provider di identità",
"service":"Service",
"sendPwd":"Inviami una nuova password",
"serverError":"Un, errore si verifica sul server",
"serviceProvidedBy":"Servizio offerto da",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password",
"serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by",
......
......@@ -180,6 +180,7 @@
"resetPwd":"Đặt lại mật khẩu của tôi",
"rightsReloadNeedsLogout": "Tải lại quyền cần đăng xuất và đăng nhập lại",
"selectIdP":"Chọn bộ cung cấp danh tính của bạn",
"service":"Service",
"sendPwd":"Gửi cho tôi một mật khẩu mới",
"serverError":"Lỗi xảy ra trên máy chủ",
"serviceProvidedBy":"Dịch vụ được cung cấp bởi",
......
......@@ -211,6 +211,7 @@
<h3 class="panel-title" trspan="oidcConsentsFull">OpenID-Connect Consents</h3>
</div>
<div class="panel-body">
<TMPL_VAR NAME="OIDC_CONSENTS">
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment