X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FCasAuthentication%2FCasAuthenticationPlugin.php;h=17c5f49d7ecedef9b643139965b47d79ffb2e950;hb=8ea83aac48545e2cdf81b4787b14b86fe819aa19;hp=cf0bf4ac5239aeb44aac37cbad4cca22db9e2d93;hpb=2a8ab1c6cae572d324339b211625c4d219db0c89;p=quix0rs-gnu-social.git diff --git a/plugins/CasAuthentication/CasAuthenticationPlugin.php b/plugins/CasAuthentication/CasAuthenticationPlugin.php index cf0bf4ac52..17c5f49d7e 100644 --- a/plugins/CasAuthentication/CasAuthenticationPlugin.php +++ b/plugins/CasAuthentication/CasAuthenticationPlugin.php @@ -36,10 +36,13 @@ set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__) . '/ext 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) { @@ -145,12 +148,13 @@ 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) { $versions[] = array('name' => 'CAS Authentication', - 'version' => GNUSOCIAL_VERSION, + 'version' => self::PLUGIN_VERSION, 'author' => 'Craig Andrews', 'homepage' => 'https://git.gnu.io/gnu/gnu-social/tree/master/plugins/CasAuthentication', // TRANS: Plugin description. CAS is Central Authentication Service.