Sort CAS servers & update langs (#1704)
This commit is contained in:
parent
4a21e96426
commit
1d08372a8c
|
@ -25,7 +25,7 @@ our $doubleHashKeys = 'issuerDBGetParameters';
|
|||
our $simpleHashKeys = '(?:(?:l(?:o(?:calSessionStorageOption|goutService)|dapExportedVar|wp(?:Ssl)?Opt)|re(?:moteGlobalStorageOption|st2f(?:Verify|Init)Arg|loadUrl)|c(?:as(?:StorageOption|Attribute)|ustomAddParam|ombModule)|(?:(?:d(?:emo|bi)|facebook|webID)E|e)xportedVar|g(?:r(?:antSessionRule|oup)|lobalStorageOption)|n(?:otificationStorageOption|ginxCustomHandler)|p(?:ersistentStorageOption|ortalSkinRule)|macro)s|o(?:idcS(?:erviceMetaDataAuthnContext|torageOptions)|penIdExportedVars)|s(?:(?:amlStorageOption|laveExportedVar)s|essionDataToRemember)|a(?:ut(?:hChoiceMod|oSigninR)ules|pplicationList)|S(?:MTPTLSOpts|SLVarIf))';
|
||||
our $specialNodeKeys = '(?:(?:(?:saml(?:ID|S)|oidc[OR])P|cas(?:App|Srv))MetaDataNode|virtualHost)s';
|
||||
our $casAppMetaDataNodeKeys = 'casAppMetaData(?:Options(?:Servic|Rul)e|ExportedVars)';
|
||||
our $casSrvMetaDataNodeKeys = 'casSrvMetaData(?:Options(?:ProxiedServices|DisplayName|Gateway|Renew|Icon|Url)|ExportedVars)';
|
||||
our $casSrvMetaDataNodeKeys = 'casSrvMetaData(?:Options(?:ProxiedServices|DisplayName|SortNumber|Gateway|Renew|Icon|Url)|ExportedVars)';
|
||||
our $oidcOPMetaDataNodeKeys = 'oidcOPMetaData(?:Options(?:C(?:lient(?:Secret|ID)|heckJWTSignature|onfigurationURI)|S(?:toreIDToken|ortNumber|cope)|TokenEndpointAuthMethod|(?:JWKSTimeou|Promp)t|I(?:DTokenMaxAge|con)|U(?:iLocales|seNonce)|Display(?:Name)?|AcrValues|MaxAge)|ExportedVars|J(?:SON|WKS))';
|
||||
our $oidcRPMetaDataNodeKeys = 'oidcRPMetaData(?:Options(?:(?:PostLogoutRedirectUri|ExtraClaim)s|I(?:DToken(?:Expiration|SignAlg)|con)|Logout(?:SessionRequired|Type|Url)|AccessTokenExpiration|R(?:edirectUris|ule)|Client(?:Secret|ID)|BypassConsent|DisplayName|UserIDAttr)|ExportedVars)';
|
||||
our $samlIDPMetaDataNodeKeys = 'samlIDPMetaData(?:Options(?:(?:Check(?:S[LS]OMessageSignatur|Audienc|Tim)|EncryptionMod|UserAttribut|DisplayNam)e|S(?:ignS[LS]OMessage|toreSAMLToken|[LS]OBinding|ortNumber)|A(?:llow(?:LoginFromIDP|ProxiedAuthn)|daptSessionUtime)|Re(?:questedAuthnContext|solutionRule|layStateURL)|Force(?:Authn|UTF8)|I(?:sPassive|con)|NameIDFormat)|ExportedAttributes|XML)';
|
||||
|
|
|
@ -721,6 +721,9 @@ sub attributes {
|
|||
'default' => 0,
|
||||
'type' => 'bool'
|
||||
},
|
||||
'casSrvMetaDataOptionsSortNumber' => {
|
||||
'type' => 'int'
|
||||
},
|
||||
'casSrvMetaDataOptionsUrl' => {
|
||||
'msgFail' => '__badUrl__',
|
||||
'test' =>
|
||||
|
|
|
@ -2770,6 +2770,10 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
|
|||
type => 'text',
|
||||
documentation => 'Path of CAS Server Icon',
|
||||
},
|
||||
casSrvMetaDataOptionsSortNumber => {
|
||||
type => 'int',
|
||||
documentation => 'Number to sort buttons',
|
||||
},
|
||||
|
||||
# Fake attribute: used by manager REST API to agglomerate all nodes
|
||||
# related to a CAS IDP partner
|
||||
|
@ -3344,7 +3348,6 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
|
|||
oidcOPMetaDataOptionsIcon => { type => 'text', },
|
||||
oidcOPMetaDataOptionsStoreIDToken => { type => 'bool', default => 0 },
|
||||
oidcOPMetaDataOptionsSortNumber => { type => 'int', },
|
||||
|
||||
oidcRPMetaDataOptionsRule => {
|
||||
type => 'text',
|
||||
test => $perlExpr,
|
||||
|
|
|
@ -243,6 +243,7 @@ sub cTrees {
|
|||
nodes => [
|
||||
'casSrvMetaDataOptionsDisplayName',
|
||||
'casSrvMetaDataOptionsIcon',
|
||||
'casSrvMetaDataOptionsSortNumber',
|
||||
]
|
||||
},
|
||||
],
|
||||
|
|
|
@ -126,6 +126,12 @@ function templates(tpl,key) {
|
|||
"get" : tpl+"s/"+key+"/"+"casSrvMetaDataOptionsIcon",
|
||||
"id" : tpl+"s/"+key+"/"+"casSrvMetaDataOptionsIcon",
|
||||
"title" : "casSrvMetaDataOptionsIcon"
|
||||
},
|
||||
{
|
||||
"get" : tpl+"s/"+key+"/"+"casSrvMetaDataOptionsSortNumber",
|
||||
"id" : tpl+"s/"+key+"/"+"casSrvMetaDataOptionsSortNumber",
|
||||
"title" : "casSrvMetaDataOptionsSortNumber",
|
||||
"type" : "int"
|
||||
}
|
||||
],
|
||||
"id" : "casSrvMetaDataOptionsDisplay",
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"الاسم المطلوب عرضه",
|
||||
"casSrvMetaDataOptionsGateway":"بوابة إثبات الهوية",
|
||||
"casSrvMetaDataOptionsIcon":"مسارالأيقونة",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"تجديد إثبات الهوية",
|
||||
"casSrvMetaDataOptionsProxiedServices":"خدمات البروكسي",
|
||||
"casSrvMetaDataOptionsUrl":" يو أر ل الخادم",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"Angezeigter Name",
|
||||
"casSrvMetaDataOptionsGateway":"Gateway authentication",
|
||||
"casSrvMetaDataOptionsIcon":"Icon path",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"Renew authentication",
|
||||
"casSrvMetaDataOptionsProxiedServices":"Proxied services",
|
||||
"casSrvMetaDataOptionsUrl":"Server URL",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"Name to display",
|
||||
"casSrvMetaDataOptionsGateway":"Gateway authentication",
|
||||
"casSrvMetaDataOptionsIcon":"Icon path",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"Renew authentication",
|
||||
"casSrvMetaDataOptionsProxiedServices":"Proxied services",
|
||||
"casSrvMetaDataOptionsUrl":"Server URL",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"Nom à afficher",
|
||||
"casSrvMetaDataOptionsGateway":"Authentification transparente",
|
||||
"casSrvMetaDataOptionsIcon":"Chemin de l'icône",
|
||||
"casSrvMetaDataOptionsSortNumber":"Ordre",
|
||||
"casSrvMetaDataOptionsRenew":"Renouveller l'authentification",
|
||||
"casSrvMetaDataOptionsProxiedServices":"Services mandatés",
|
||||
"casSrvMetaDataOptionsUrl":"URL du serveur",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"Nome da visualizzare",
|
||||
"casSrvMetaDataOptionsGateway":"Autenticazione gateway",
|
||||
"casSrvMetaDataOptionsIcon":"Path icona",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"Rinnova l'autenticazione",
|
||||
"casSrvMetaDataOptionsProxiedServices":"Servizi Proxied",
|
||||
"casSrvMetaDataOptionsUrl":"URL del server",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"Tên để hiển thị",
|
||||
"casSrvMetaDataOptionsGateway":"Xác thực Gateway",
|
||||
"casSrvMetaDataOptionsIcon":"Đường dẫn Icon",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"Gia hạn chứng thực",
|
||||
"casSrvMetaDataOptionsProxiedServices":"Dịch vụ proxy",
|
||||
"casSrvMetaDataOptionsUrl":"URL máy chủ",
|
||||
|
|
|
@ -128,6 +128,7 @@
|
|||
"casSrvMetaDataOptionsDisplayName":"显示名称",
|
||||
"casSrvMetaDataOptionsGateway":"网关认证",
|
||||
"casSrvMetaDataOptionsIcon":"图标路径",
|
||||
"casSrvMetaDataOptionsSortNumber":"Order",
|
||||
"casSrvMetaDataOptionsRenew":"Renew authentication",
|
||||
"casSrvMetaDataOptionsProxiedServices":"代理服务",
|
||||
"casSrvMetaDataOptionsUrl":"服务器 URL",
|
||||
|
|
|
@ -44,6 +44,8 @@ sub init {
|
|||
->{casSrvMetaDataOptionsDisplayName};
|
||||
my $icon = $self->conf->{casSrvMetaDataOptions}->{$_}
|
||||
->{casSrvMetaDataOptionsIcon};
|
||||
my $order = $self->conf->{casSrvMetaDataOptions}->{$_}
|
||||
->{casSrvMetaDataOptionsSortNumber};
|
||||
my $img_src;
|
||||
|
||||
if ($icon) {
|
||||
|
@ -52,15 +54,21 @@ sub init {
|
|||
? $icon
|
||||
: $portalPath . $self->p->staticPrefix . "/common/" . $icon;
|
||||
}
|
||||
|
||||
push @list,
|
||||
{
|
||||
val => $_,
|
||||
name => $name,
|
||||
icon => $img_src,
|
||||
order => $order,
|
||||
class => "openidconnect",
|
||||
};
|
||||
}
|
||||
@list =
|
||||
sort {
|
||||
$a->{order} <=> $b->{order}
|
||||
or $a->{name} cmp $b->{name}
|
||||
or $a->{val} cmp $b->{val}
|
||||
} @list;
|
||||
$self->srvList( \@list );
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user