mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
LSauthCAS : added possibility to set CURLOPT_SSLVERSION option with parameter LSAUTH_CAS_CURL_SSLVERION
This commit is contained in:
parent
c3d88f4eaa
commit
a516c5be74
2 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue