Add Facebook parameters in Manager

This commit is contained in:
Xavier Guimard 2013-10-05 15:51:55 +00:00
parent 065c34d609
commit db51a80445
3 changed files with 31 additions and 3 deletions

View File

@ -14,6 +14,8 @@ var helpCh={
'authDBISchema':'/pages/documentation/current/authdbi.html#schema',
'authCAS':'/pages/documentation/current/authcas.html',
'authChoice':'/pages/documentation/current/authchoice.html',
'authFacebook':'/pages/documentation/current/authfacebook.html',
'authGoogle':'/pages/documentation/current/authgoogle.html',
'authLDAP':'/pages/documentation/current/authldap.html',
'authLDAPConnection':'/pages/documentation/current/authldap.html#connection',
'authLDAPFilters':'/pages/documentation/current/authldap.html#filters',
@ -610,6 +612,7 @@ function formateSelectAuth(id,value){
'CAS=Central Authentication Service (CAS)',
'DBI=Database (DBI)',
'Demo=Demonstration',
'Facebook=Facebook',
'Google=Google',
'LDAP=LDAP',
'Multi=Multiple',
@ -665,6 +668,7 @@ function formateSelectUser(id,value){
'AD=Active Directory',
'DBI=Database (DBI)',
'Demo=Demonstration',
'Facebook=Facebook',
'Google=Google',
'LDAP=LDAP',
'Multi=Multiple',

View File

@ -376,16 +376,17 @@ sub struct {
proxy => ['proxyParams'],
openid => ['openIdParams'],
google => ['googleParams'],
facebook=> ['facebookParams'],
twitter => ['twitterParams'],
dbi => ['dbiParams'],
apache => ['apacheParams'],
null => ['nullParams'],
slave => ['slaveParams'],
choice => [
qw(ldapParams sslParams casParams radiusParams remoteParams proxyParams openIdParams googleParams twitterParams dbiParams apacheParams nullParams choiceParams slaveParams yubikeyParams browserIdParams)
qw(ldapParams sslParams casParams radiusParams remoteParams proxyParams openIdParams googleParams facebookParams twitterParams dbiParams apacheParams nullParams choiceParams slaveParams yubikeyParams browserIdParams)
],
multi => [
qw(ldapParams sslParams casParams radiusParams remoteParams proxyParams openIdParams googleParams twitterParams dbiParams apacheParams nullParams choiceParams slaveParams yubikeyParams browserIdParams)
qw(ldapParams sslParams casParams radiusParams remoteParams proxyParams openIdParams googleParams facebookParams twitterParams dbiParams apacheParams nullParams choiceParams slaveParams yubikeyParams browserIdParams)
],
yubikey => ['yubikeyParams'],
browserid => ['browserIdParams'],
@ -561,6 +562,15 @@ sub struct {
googleAuthnLevel => 'int:/googleAuthnLevel',
},
# Facebook
facebookParams => {
_nodes => [qw(facebookAuthnLevel facebookAppId facebookAppSecret)],
_help => 'authFacebook',
facebookAuthnLevel => 'int:/facebookAuthnLevel',
facebookAppId => 'text:facebookAppId',
facebookAppSecret => 'text:facebookAppSecret',
},
# Twitter
twitterParams => {
_nodes => [
@ -1861,6 +1871,11 @@ m{^(?:ldapi://[^/]*/?|\w[\w\-\.]*(?::\d{1,5})?|ldap(?:s|\+tls)?://\w[\w\-\.]*(?:
# Google
googleAuthnLevel => $integer,
# Facebook
facebookAuthnLevel => $integer,
facebookAppId => $testNotDefined,
facebookAppSecret => $testNotDefined,
# Twitter
twitterAuthnLevel => $integer,
twitterKey => $testNotDefined,
@ -2177,6 +2192,7 @@ sub defaultConf {
CAS_authnLevel => 1,
googleAuthnLevel => 1,
openIdAuthnLevel => 1,
facebookAuthnLevel => 1,
twitterAuthnLevel => 1,
apacheAuthnLevel => 4,
nullAuthnLevel => 0,
@ -2296,7 +2312,7 @@ sub globalTests {
# Check if "userDB" and "authentication" are consistent
authAndUserDBConsistency => sub {
foreach my $type (qw(Google OpenID SAML)) {
foreach my $type (qw(Facebook Google OpenID SAML)) {
return ( 0,
"\"$type\" can not be used as user database without using \"$type\" for authentication"
)

View File

@ -144,6 +144,10 @@ sub en {
error => 'Error',
exportedAttr => 'SOAP exported attributes',
exportedVars => 'Exported Variables',
facebookAppId => 'Facebook application ID',
facebookAppSecret => 'Facebook application secret',
facebookAuthnLevel => 'Authentication level',
facebookParams => 'Facebook parameters',
failedLoginNumber => 'Number of registered failed logins',
generalParameters => 'General Parameters',
globalStorage => 'Apache::Session module',
@ -612,6 +616,10 @@ sub fr {
error => 'Erreur',
exportedAttr => 'Attributs exportés par le portail (SOAP)',
exportedVars => 'Attributs à exporter',
facebookAppId => 'ID de l\'application Facebook',
facebookAppSecret => 'Secret de l\'application Facebook',
facebookAuthnLevel => 'Niveau d\'authentification',
facebookParams => 'Paramètres Facebook',
failedLoginNumber => 'Nombre d\'échecs de connexion mémorisés',
generalParameters => 'Paramètres généraux',
globalStorage => 'Module Apache::Session',