OIDC Consents display (#826)

TODO: Ajax to remove a consent
This commit is contained in:
Xavier Guimard 2017-09-15 12:31:42 +00:00
parent bf1cf4c4f5
commit 9b389d90eb
18 changed files with 33 additions and 0 deletions

View File

@ -567,6 +567,7 @@
"portalDisplayChangePassword": "تغيير كلمة المرور", "portalDisplayChangePassword": "تغيير كلمة المرور",
"portalDisplayLoginHistory": "سجل تسجيل الدخول", "portalDisplayLoginHistory": "سجل تسجيل الدخول",
"portalDisplayLogout": "تسجيل الخروج", "portalDisplayLogout": "تسجيل الخروج",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayRegister": "تسجيل حساب جديد", "portalDisplayRegister": "تسجيل حساب جديد",
"portalDisplayResetPassword": "إعادة تعيين كلمة المرور", "portalDisplayResetPassword": "إعادة تعيين كلمة المرور",
"portalErrorOnExpiredSession": "عرض الخطأ في الجلسة المنتهية صلحيتها", "portalErrorOnExpiredSession": "عرض الخطأ في الجلسة المنتهية صلحيتها",

View File

@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Login History", "portalDisplayLoginHistory": "Login History",
"portalDisplayLogout": "Logout", "portalDisplayLogout": "Logout",
"portalDisplayRegister": "Register new account", "portalDisplayRegister": "Register new account",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Reset password", "portalDisplayResetPassword": "Reset password",
"portalErrorOnExpiredSession": "Show error on expired session", "portalErrorOnExpiredSession": "Show error on expired session",
"portalErrorOnMailNotFound": "Show error on mail not found", "portalErrorOnMailNotFound": "Show error on mail not found",

View File

@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Historique des connexions", "portalDisplayLoginHistory": "Historique des connexions",
"portalDisplayLogout": "Déconnexion", "portalDisplayLogout": "Déconnexion",
"portalDisplayRegister": "Création d'un nouveau compte", "portalDisplayRegister": "Création d'un nouveau compte",
"portalDisplayOidcConsents": "Accords OIDC",
"portalDisplayResetPassword": "Réinitialisation de mot de passe", "portalDisplayResetPassword": "Réinitialisation de mot de passe",
"portalErrorOnExpiredSession": "Affiche une erreur si la session est expirée", "portalErrorOnExpiredSession": "Affiche une erreur si la session est expirée",
"portalErrorOnMailNotFound": "Affiche une erreur si le mail n'est pas trouvé", "portalErrorOnMailNotFound": "Affiche une erreur si le mail n'est pas trouvé",

View File

@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Cronologia login", "portalDisplayLoginHistory": "Cronologia login",
"portalDisplayLogout": "Logout", "portalDisplayLogout": "Logout",
"portalDisplayRegister": "Registra nuovo account", "portalDisplayRegister": "Registra nuovo account",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Reimposta password", "portalDisplayResetPassword": "Reimposta password",
"portalErrorOnExpiredSession": "Mostra errore nella sessione scaduta", "portalErrorOnExpiredSession": "Mostra errore nella sessione scaduta",
"portalErrorOnMailNotFound": "Mostra errore sulla posta non trovata", "portalErrorOnMailNotFound": "Mostra errore sulla posta non trovata",

View File

@ -568,6 +568,7 @@
"portalDisplayLoginHistory": "Lịch sử đăng nhập", "portalDisplayLoginHistory": "Lịch sử đăng nhập",
"portalDisplayLogout": "Đăng xuất", "portalDisplayLogout": "Đăng xuất",
"portalDisplayRegister": "Đăng ký tài khoản mới", "portalDisplayRegister": "Đăng ký tài khoản mới",
"portalDisplayOidcConsents": "OIDC Consents",
"portalDisplayResetPassword": "Đặt lại mật khẩu", "portalDisplayResetPassword": "Đặt lại mật khẩu",
"portalErrorOnExpiredSession": "Show error on expired session", "portalErrorOnExpiredSession": "Show error on expired session",
"portalErrorOnMailNotFound": "Show error on mail not found", "portalErrorOnMailNotFound": "Show error on mail not found",

View File

@ -461,4 +461,17 @@ sub mkSessionArray {
return $tmp; 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; 1;

View File

@ -126,6 +126,10 @@ sub displayModules {
$req->{sessionInfo}->{_loginHistory}->{failedLogin}, $req->{sessionInfo}->{_loginHistory}->{failedLogin},
"", 0, 1 ); "", 0, 1 );
} }
elsif ( $module->[0] eq 'OidcConsents' ) {
$moduleHash->{'OIDC_CONSENTS'} =
$self->p->mkOidcConsent( $req->sessionInfo );
}
push @$displayModules, $moduleHash; push @$displayModules, $moduleHash;
} }
} }

View File

@ -180,6 +180,7 @@
"resetPwd":"إعادة تعيين كلمة المرور الخاصة بي", "resetPwd":"إعادة تعيين كلمة المرور الخاصة بي",
"rightsReloadNeedsLogout": " إعادة تحميل الحقوق تحتاج إلى تسجيل الخروج وتسجيل الدخول مرة أخرى", "rightsReloadNeedsLogout": " إعادة تحميل الحقوق تحتاج إلى تسجيل الخروج وتسجيل الدخول مرة أخرى",
"selectIdP":"اختر موفر الهوية الخاص بك", "selectIdP":"اختر موفر الهوية الخاص بك",
"service":"Service",
"sendPwd":"أرسل لي كلمة مرور جديدة", "sendPwd":"أرسل لي كلمة مرور جديدة",
"serverError":"يحدث خطأ في الخادم", "serverError":"يحدث خطأ في الخادم",
"serviceProvidedBy":"الخدمة المقدمة من قبل", "serviceProvidedBy":"الخدمة المقدمة من قبل",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Réinitialiser mon mot de passe", "resetPwd":"Réinitialiser mon mot de passe",
"rightsReloadNeedsLogout": "Le rechargement des droits nécessite une déconnexion", "rightsReloadNeedsLogout": "Le rechargement des droits nécessite une déconnexion",
"selectIdP":"Choisissez votre fournisseur d'identité", "selectIdP":"Choisissez votre fournisseur d'identité",
"service":"Service",
"sendPwd":"Envoyez-moi un nouveau mot de passe", "sendPwd":"Envoyez-moi un nouveau mot de passe",
"serverError":"Une erreur est survenue sur le serveur", "serverError":"Une erreur est survenue sur le serveur",
"serviceProvidedBy":"Ce service est fourni par", "serviceProvidedBy":"Ce service est fourni par",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reimpostare la password", "resetPwd":"Reimpostare la password",
"rightsReloadNeedsLogout": "Le ricariche dei diritti necessitano di disconnettersi e di riconnettersi", "rightsReloadNeedsLogout": "Le ricariche dei diritti necessitano di disconnettersi e di riconnettersi",
"selectIdP":"Seleziona il tuo provider di identità", "selectIdP":"Seleziona il tuo provider di identità",
"service":"Service",
"sendPwd":"Inviami una nuova password", "sendPwd":"Inviami una nuova password",
"serverError":"Un, errore si verifica sul server", "serverError":"Un, errore si verifica sul server",
"serviceProvidedBy":"Servizio offerto da", "serviceProvidedBy":"Servizio offerto da",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Reset my password", "resetPwd":"Reset my password",
"rightsReloadNeedsLogout": "Rights reloads need to logout and login again", "rightsReloadNeedsLogout": "Rights reloads need to logout and login again",
"selectIdP":"Select your Identity Provider", "selectIdP":"Select your Identity Provider",
"service":"Service",
"sendPwd":"Send me a new password", "sendPwd":"Send me a new password",
"serverError":"Error occurs on the server", "serverError":"Error occurs on the server",
"serviceProvidedBy":"Service provided by", "serviceProvidedBy":"Service provided by",

View File

@ -180,6 +180,7 @@
"resetPwd":"Đặt lại mật khẩu của tôi", "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", "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", "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", "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ủ", "serverError":"Lỗi xảy ra trên máy chủ",
"serviceProvidedBy":"Dịch vụ được cung cấp bởi", "serviceProvidedBy":"Dịch vụ được cung cấp bởi",

View File

@ -211,6 +211,7 @@
<h3 class="panel-title" trspan="oidcConsentsFull">OpenID-Connect Consents</h3> <h3 class="panel-title" trspan="oidcConsentsFull">OpenID-Connect Consents</h3>
</div> </div>
<div class="panel-body"> <div class="panel-body">
<TMPL_VAR NAME="OIDC_CONSENTS">
</div> </div>
</div> </div>
</div> </div>