Set default values for BrowserID parameters (#595)

This commit is contained in:
Xavier Guimard 2016-05-23 21:52:26 +00:00
parent 4ec26d5f46
commit 4cde65c825
4 changed files with 18 additions and 9 deletions

View File

@ -18,6 +18,11 @@ sub defaultValues {
'authChoiceParam' => 'lmAuth', 'authChoiceParam' => 'lmAuth',
'authentication' => 'Demo', 'authentication' => 'Demo',
'browserIdAuthnLevel' => 1, 'browserIdAuthnLevel' => 1,
'browserIdAutoLogin' => 0,
'browserIdBackgroundColor' => '#000',
'browserIdSiteName' => 'LemonLDAP::NG',
'browserIdVerificationURL' =>
'https://verifier.login.persona.org/verify',
'captcha_login_enabled' => 0, 'captcha_login_enabled' => 0,
'captcha_mail_enabled' => 0, 'captcha_mail_enabled' => 0,
'captcha_register_enabled' => 1, 'captcha_register_enabled' => 1,

View File

@ -566,19 +566,23 @@ sub attributes {
'type' => 'int' 'type' => 'int'
}, },
'browserIdAutoLogin' => { 'browserIdAutoLogin' => {
'type' => 'bool' 'default' => 0,
'type' => 'bool'
}, },
'browserIdBackgroundColor' => { 'browserIdBackgroundColor' => {
'type' => 'text' 'default' => '#000',
'type' => 'text'
}, },
'browserIdSiteLogo' => { 'browserIdSiteLogo' => {
'type' => 'text' 'type' => 'text'
}, },
'browserIdSiteName' => { 'browserIdSiteName' => {
'type' => 'text' 'default' => 'LemonLDAP::NG',
'type' => 'text'
}, },
'browserIdVerificationURL' => { 'browserIdVerificationURL' => {
'type' => 'text' 'default' => 'https://verifier.login.persona.org/verify',
'type' => 'text'
}, },
'captcha_login_enabled' => { 'captcha_login_enabled' => {
'default' => 0, 'default' => 0,

View File

@ -2140,11 +2140,11 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
default => 1, default => 1,
documentation => 'Browser ID authentication level', documentation => 'Browser ID authentication level',
}, },
browserIdAutoLogin => { type => 'bool', }, browserIdAutoLogin => { type => 'bool', default => 0 },
browserIdVerificationURL => { type => 'text', }, browserIdVerificationURL => { type => 'text', default => 'https://verifier.login.persona.org/verify', },
browserIdSiteName => { type => 'text', }, browserIdSiteName => { type => 'text', default => 'LemonLDAP::NG', },
browserIdSiteLogo => { type => 'text', }, browserIdSiteLogo => { type => 'text', },
browserIdBackgroundColor => { type => 'text', }, browserIdBackgroundColor => { type => 'text', default => '#000', },
# OpenID Connect auth params # OpenID Connect auth params
oidcAuthnLevel => { oidcAuthnLevel => {

File diff suppressed because one or more lines are too long