OpenID Connect consent skeleton (#826)

This commit is contained in:
Xavier Guimard 2017-09-15 10:32:15 +00:00
parent 7327b52f00
commit 5b5e5db123
18 changed files with 54 additions and 4 deletions

View File

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

View File

@ -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'

View File

@ -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 =>

View File

@ -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

View File

@ -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 =

View File

@ -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؟",

View File

@ -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 ?",

View File

@ -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 ?",

View File

@ -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 ?",

View File

@ -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 ?",

View File

@ -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?",

View File

@ -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 ?",

View File

@ -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 ?",

View File

@ -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 ?",

View File

@ -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?",

View File

@ -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">