OpenID Connect consent skeleton (#826)

environments/ppa-mbqj77/deployments/1
Xavier Guimard 8 years ago
parent 7327b52f00
commit 5b5e5db123
  1. 1
      lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/DefaultValues.pm
  2. 4
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Attributes.pm
  3. 5
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Attributes.pm
  4. 3
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Build/Tree.pm
  5. 2
      lemonldap-ng-manager/site/htdocs/static/reverseTree.json
  6. 2
      lemonldap-ng-manager/site/htdocs/static/struct.json
  7. 2
      lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Main/Menu.pm
  8. 2
      lemonldap-ng-portal/site/htdocs/static/languages/ar.json
  9. 2
      lemonldap-ng-portal/site/htdocs/static/languages/de.json
  10. 2
      lemonldap-ng-portal/site/htdocs/static/languages/en.json
  11. 2
      lemonldap-ng-portal/site/htdocs/static/languages/es.json
  12. 2
      lemonldap-ng-portal/site/htdocs/static/languages/fr.json
  13. 2
      lemonldap-ng-portal/site/htdocs/static/languages/it.json
  14. 2
      lemonldap-ng-portal/site/htdocs/static/languages/nl.json
  15. 2
      lemonldap-ng-portal/site/htdocs/static/languages/pt.json
  16. 2
      lemonldap-ng-portal/site/htdocs/static/languages/ro.json
  17. 2
      lemonldap-ng-portal/site/htdocs/static/languages/vi.json
  18. 19
      lemonldap-ng-portal/site/templates/bootstrap/menu.tpl

@ -163,6 +163,7 @@ sub defaultValues {
'portalDisplayChangePassword' => '$_auth =~ /^(LDAP|DBI|Demo)$/',
'portalDisplayLoginHistory' => 1,
'portalDisplayLogout' => 1,
'portalDisplayOidcConsents' => 1,
'portalDisplayRegister' => 1,
'portalErrorOnExpiredSession' => 1,
'portalForceAuthnInterval' => 5,

@ -2110,6 +2110,10 @@ qr/^(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-
'default' => 1,
'type' => 'boolOrExpr'
},
'portalDisplayOidcConsents' => {
'default' => 1,
'type' => 'boolOrExpr'
},
'portalDisplayRegister' => {
'default' => 1,
'type' => 'bool'

@ -634,6 +634,11 @@ sub attributes {
type => 'bool',
documentation => 'Display reset password button in portal',
},
portalDisplayOidcConsents => {
type => 'boolOrExpr',
default => 1,
documentation => 'Display OIDC consent tab in portal',
},
# Cookies
cookieExpiration =>

@ -40,7 +40,8 @@ sub tree {
'portalDisplayLogout',
'portalDisplayChangePassword',
'portalDisplayAppslist',
'portalDisplayLoginHistory'
'portalDisplayLoginHistory',
'portalDisplayOidcConsents',
]
},
'applicationList'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -19,7 +19,7 @@ has menuModules => (
builder => sub {
my $conf = $_[0]->{conf}->{menuModule};
my @res;
foreach (qw(Appslist ChangePassword LoginHistory Logout)) {
foreach (qw(Appslist ChangePassword LoginHistory Logout OidcConsents)) {
my $cond = $conf->{"portalDisplay$_"} // 1;
$_[0]->p->logger->debug("Evaluate condition $cond for module $_");
my $tmp =

@ -148,6 +148,8 @@
"notFound": "لم يتم العثور: محاولة الدخول إلى صفحة غير متوفرة",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"التطبيق ٪s هل ترغب في معرفة:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"هل توافق على تقديم الإعدادات التالية؟",
"openIdExample":"فمثلا:http://myopenid.org/toto",
"openidExchange":"هل تريد مصادقة نفسك على٪ s؟",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Non trouvé: vous tentez d'accéder à une page non disponible",
"noU2FKeyFound": "Aucune clef U2F trouvée",
"oidcConsent":"L'application %s voudrait connaître :",
"oidcConsents": "Accords OIDC",
"oidcConsentsFull":"Accords OpenID-Connect",
"openidAp":"Consentez-vous à communiquer les paramètres suivants ?",
"openIdExample":"par exemple :http://myopenid.org/toto",
"openidExchange":"Souhaitez-vous vous identifier sur le site %s ?",

@ -148,6 +148,8 @@
"notFound": "Non trovato: si tenta di accedere ad una pagina non disponibile",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"L'applicazione %s vorrebbe sapere:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Accetti di fornire i seguenti parametri?",
"openIdExample":"per esempio:http://myopenid.org/toto",
"openidExchange":"Vuoi autenticarti su% s?",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Not found: you try to access to an unavailable page",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"The application %s would like to know:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Do you agree to provide the following parameters?",
"openIdExample":"for example:http://myopenid.org/toto",
"openidExchange":"Do you want to authenticate yourself on %s ?",

@ -148,6 +148,8 @@
"notFound": "Không tìm thấy: bạn cố gắng truy cập vào một trang không có sẵn",
"noU2FKeyFound": "No U2F key found",
"oidcConsent":"Ứng dụng % s muốn biết:",
"oidcConsents": "OIDC consents",
"oidcConsentsFull":"OpenID-Connect consents",
"openidAp":"Bạn đồng ý cung cấp các thông số sau?",
"openIdExample":"ví dụ: http: //myopenid.org/toto",
"openidExchange":"Bạn có muốn chứng thực mình trên%s không?",

@ -51,6 +51,13 @@
<span trspan="loginHistory">Login history</span>
</span></a></li>
</TMPL_IF>
<TMPL_IF NAME="OidcConsents">
<li><a href="#oidcConsents"><span>
<!-- TODO: change logo -->
<img src="<TMPL_VAR NAME="STATIC_PREFIX">common/icons/calendar.png" width="16" height="16" alt="login history" />
<span trspan="oidcConsents">OIDC Consent</span>
</span></a></li>
</TMPL_IF>
<TMPL_IF NAME="Logout">
<li><a href="#logout"><span>
<img src="<TMPL_VAR NAME="STATIC_PREFIX">common/icons/door_out.png" width="16" height="16" alt="logout" />
@ -197,6 +204,18 @@
</div>
</TMPL_IF>
<TMPL_IF NAME="OidcConsents">
<div id="oidcConsents">
<div class="panel panel-info">
<div class="panel-heading">
<h3 class="panel-title" trspan="oidcConsentsFull">OpenID-Connect Consents</h3>
</div>
<div class="panel-body">
</div>
</div>
</div>
</TMPL_IF>
<TMPL_IF NAME="Logout">
<div id="logout">
<div class="panel panel-info">

Loading…
Cancel
Save