Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
9b389d90
Commit
9b389d90
authored
Sep 15, 2017
by
Yadd
Browse files
OIDC Consents display (#826)
TODO: Ajax to remove a consent
parent
bf1cf4c4
Changes
18
Hide whitespace changes
Inline
Side-by-side
lemonldap-ng-manager/site/htdocs/static/languages/ar.json
View file @
9b389d90
...
...
@@ -567,6 +567,7 @@
"portalDisplayChangePassword"
:
"تغيير كلمة المرور"
,
"portalDisplayLoginHistory"
:
"سجل تسجيل الدخول"
,
"portalDisplayLogout"
:
"تسجيل الخروج"
,
"portalDisplayOidcConsents"
:
"OIDC Consents"
,
"portalDisplayRegister"
:
"تسجيل حساب جديد"
,
"portalDisplayResetPassword"
:
"إعادة تعيين كلمة المرور"
,
"portalErrorOnExpiredSession"
:
"عرض الخطأ في الجلسة المنتهية صلحيتها"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/en.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/fr.json
View file @
9b389d90
...
...
@@ -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é"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/it.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-manager/site/htdocs/static/languages/vi.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Display.pm
View file @
9b389d90
...
...
@@ -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
;
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Menu.pm
View file @
9b389d90
...
...
@@ -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
;
}
}
...
...
lemonldap-ng-portal/site/htdocs/static/languages/ar.json
View file @
9b389d90
...
...
@@ -180,6 +180,7 @@
"resetPwd"
:
"إعادة تعيين كلمة المرور الخاصة بي"
,
"rightsReloadNeedsLogout"
:
" إعادة تحميل الحقوق تحتاج إلى تسجيل الخروج وتسجيل الدخول مرة أخرى"
,
"selectIdP"
:
"اختر موفر الهوية الخاص بك"
,
"service"
:
"Service"
,
"sendPwd"
:
"أرسل لي كلمة مرور جديدة"
,
"serverError"
:
"يحدث خطأ في الخادم"
,
"serviceProvidedBy"
:
"الخدمة المقدمة من قبل"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/de.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/en.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/es.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/fr.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/it.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/nl.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/pt.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/ro.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/htdocs/static/languages/vi.json
View file @
9b389d90
...
...
@@ -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"
,
...
...
lemonldap-ng-portal/site/templates/bootstrap/menu.tpl
View file @
9b389d90
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment