class CasAuthenticationPlugin extends AuthenticationPlugin
{
+ const PLUGIN_VERSION = '2.0.0';
+
public $server;
public $port = 443;
public $path = '';
public $takeOverLogin = false;
+ public $user_whitelist = null;
function checkPassword($username, $password)
{
$casSettings['port']=$this->port;
$casSettings['path']=$this->path;
$casSettings['takeOverLogin']=$this->takeOverLogin;
+ $casSettings['user_whitelist']=$this->user_whitelist;
}
function onPluginVersion(array &$versions)
{
$versions[] = array('name' => 'CAS Authentication',
- 'version' => GNUSOCIAL_VERSION,
+ 'version' => self::PLUGIN_VERSION,
'author' => 'Craig Andrews',
- 'homepage' => 'http://status.net/wiki/Plugin:CasAuthentication',
+ 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/CasAuthentication',
// TRANS: Plugin description. CAS is Central Authentication Service.
'rawdescription' => _m('The CAS Authentication plugin allows for StatusNet to handle authentication through CAS (Central Authentication Service).'));
return true;