LSauthCAS : added possibility to set CURLOPT_SSLVERSION option with parameter LSAUTH_CAS_CURL_SSLVERION

This commit is contained in:
Benjamin Renard 2012-03-29 18:33:12 +02:00
parent c3d88f4eaa
commit a516c5be74
2 changed files with 9 additions and 0 deletions

View file

@ -56,4 +56,9 @@ define('LSAUTH_CAS_SERVER_NO_SSL_VALIDATION',false);
// CAS server SSL CA Certificate path // CAS server SSL CA Certificate path
//define('LSAUTH_CAS_SERVER_SSL_CACERT',''); //define('LSAUTH_CAS_SERVER_SSL_CACERT','');
// phpCAS use cURL to validate ticket from the CAS server.
// You could have to set SSLVERSION manualy if you have cURL
// error on ticket validation. Possibles values : 2 or 3
//define('LSAUTH_CAS_CURL_SSLVERION',3);
?> ?>

View file

@ -50,6 +50,10 @@ class LSauthMethod_CAS extends LSauthMethod {
phpCAS::setCasServerCACert(LSAUTH_CAS_SERVER_SSL_CACERT); phpCAS::setCasServerCACert(LSAUTH_CAS_SERVER_SSL_CACERT);
} }
if (defined('LSAUTH_CAS_CURL_SSLVERION')) {
phpCAS::setExtraCurlOption(CURLOPT_SSLVERSION,LSAUTH_CAS_CURL_SSLVERION);
}
if (LSAUTH_CAS_DISABLE_LOGOUT) { if (LSAUTH_CAS_DISABLE_LOGOUT) {
LSauth :: disableLogoutBtn(); LSauth :: disableLogoutBtn();
} }