Added CAS user whitelist feature
This feature filters users who may log in via CAS. This is useful when both CAS and password authentication is enabled and there is a mismatch between some GNU social account names and CAS user names. This prevents CAS users from logging in as someone else on GNU social.
This commit is contained in:
committed by
Andrew Engelbrecht
parent
2a8ab1c6ca
commit
6ca5bb4d41
@@ -40,6 +40,7 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
|
||||
public $port = 443;
|
||||
public $path = '';
|
||||
public $takeOverLogin = false;
|
||||
public $user_whitelist = null;
|
||||
|
||||
function checkPassword($username, $password)
|
||||
{
|
||||
@@ -145,6 +146,7 @@ class CasAuthenticationPlugin extends AuthenticationPlugin
|
||||
$casSettings['port']=$this->port;
|
||||
$casSettings['path']=$this->path;
|
||||
$casSettings['takeOverLogin']=$this->takeOverLogin;
|
||||
$casSettings['user_whitelist']=$this->user_whitelist;
|
||||
}
|
||||
|
||||
function onPluginVersion(array &$versions)
|
||||
|
Reference in New Issue
Block a user