This commit is contained in:
Xavier Guimard 2018-03-15 22:22:20 +01:00
parent fe36a9718d
commit 3dcc4af9e7
9 changed files with 22 additions and 0 deletions

View File

@ -1128,6 +1128,10 @@ sub attributes {
documentation =>
'Authentication level for users authentified by External second factor'
},
ext2fLogo => {
type => 'text',
documentation => 'Custom logo for External 2F',
},
# REST External second factor
rest2fActivation => {
@ -1164,6 +1168,10 @@ sub attributes {
documentation =>
'Authentication level for users authentified by REST second factor'
},
rest2fLogo => {
type => 'text',
documentation => 'Custom logo for REST 2F',
},
# Single session
notifyDeleted => {

View File

@ -676,6 +676,7 @@ sub tree {
nodes => [
'ext2fActivation', 'ext2FSendCommand',
'ext2FValidateCommand', 'ext2fAuthnLevel',
'ext2fLogo',
]
},
{
@ -686,6 +687,7 @@ sub tree {
'rest2fActivation', 'rest2fInitUrl',
'rest2fInitArgs', 'rest2fVerifyUrl',
'rest2fVerifyArgs', 'rest2fAuthnLevel',
'rest2fLogo',
]
},
]

View File

@ -234,6 +234,7 @@
"external2f":" العامل الثاني الخارجي",
"ext2fActivation":"تفعيل",
"ext2fAuthnLevel":"مستوى إثبات الهوية",
"ext2fLogo":"Logo",
"ext2FSendCommand":"إرسال الأمر",
"ext2FValidateCommand":"التحقق من صحة الأمر",
"facebookAppId":"هوية تطبيق فاسيبوك",
@ -639,6 +640,7 @@
"rest2fAuthnLevel":"Authentication level",
"rest2fInitArgs":"Init Arguments",
"rest2fInitUrl":"Init URL",
"rest2fLogo":"Logo",
"rest2fVerifyArgs":"Verify Arguments",
"rest2fVerifyUrl":"Verify URL",
"restParams":"معايير ريست",

View File

@ -234,6 +234,7 @@
"external2f":"External 2nd factor",
"ext2fActivation":"Activation",
"ext2fAuthnLevel":"Authentication level",
"ext2fLogo":"Logo",
"ext2FSendCommand":"Send comand",
"ext2FValidateCommand":"Validation command",
"facebookAppId":"Facebook application ID",
@ -639,6 +640,7 @@
"rest2fAuthnLevel":"Authentication level",
"rest2fInitArgs":"Init Arguments",
"rest2fInitUrl":"Init URL",
"rest2fLogo":"Logo",
"rest2fVerifyArgs":"Verify Arguments",
"rest2fVerifyUrl":"Verify URL",
"restParams":"REST parameters",

View File

@ -234,6 +234,7 @@
"external2f":"2nd facteur externe",
"ext2fActivation":"Activation",
"ext2fAuthnLevel":"Niveau de l'authentification",
"ext2fLogo":"Logo",
"ext2FSendCommand":"Commande pour l'envoi",
"ext2FValidateCommand":"Commande pour la validation",
"facebookAppId":"ID de l'application Facebook",
@ -639,6 +640,7 @@
"rest2fAuthnLevel":"Niveau d'authentification",
"rest2fInitArgs":"Arguments d'initialisation",
"rest2fInitUrl":"URL d'initialisation",
"rest2fLogo":"Logo",
"rest2fVerifyArgs":"Arguments de vérification",
"rest2fVerifyUrl":"URL de vérification",
"restParams":"Paramètres REST",

View File

@ -234,6 +234,7 @@
"external2f":"2° fattore esterno",
"ext2fActivation":"Attivazione",
"ext2fAuthnLevel":"Livello di autenticazione",
"ext2fLogo":"Logo",
"ext2FSendCommand":"Invia comando",
"ext2FValidateCommand":"Comando di convalida",
"facebookAppId":"ID dell'applicazione Facebook",
@ -639,6 +640,7 @@
"rest2fAuthnLevel":"Authentication level",
"rest2fInitArgs":"Init Arguments",
"rest2fInitUrl":"Init URL",
"rest2fLogo":"Logo",
"rest2fVerifyArgs":"Verify Arguments",
"rest2fVerifyUrl":"Verify URL",
"restParams":"Parametri REST",

View File

@ -234,6 +234,7 @@
"external2f":"Yếu tố thứ 2 bên ngoài ",
"ext2fActivation":"Kích hoạt",
"ext2fAuthnLevel":"Mức xác thực",
"ext2fLogo":"Logo",
"ext2FSendCommand":"Gửi lệnh",
"ext2FValidateCommand":"Xác nhận lệnh",
"facebookAppId":"ID ứng dụng Facebook ",
@ -639,6 +640,7 @@
"rest2fAuthnLevel":"Authentication level",
"rest2fInitArgs":"Init Arguments",
"rest2fInitUrl":"Init URL",
"rest2fLogo":"Logo",
"rest2fVerifyArgs":"Verify Arguments",
"rest2fVerifyUrl":"Verify URL",
"restParams":"Tham số REST",

View File

@ -26,6 +26,7 @@ sub init {
return 0;
}
}
$self->logo( $self->conf->{ext2fLogo} ) if ( $self->conf->{ext2fLogo} );
return $self->SUPER::init();
}

View File

@ -29,6 +29,7 @@ sub init {
$self->logger->error('Missing REST verification URL');
return 0;
}
$self->logo( $self->conf->{rest2fLogo} ) if ( $self->conf->{rest2fLogo} );
foreach my $k ( keys %{ $self->conf->{rest2fInitArgs} } ) {
my $attr = $self->conf->{rest2fInitArgs}->{$k};
$attr =~ s/^$//;