This commit is contained in:
Baptiste 2022-10-27 19:52:08 +02:00
parent 8c74ba9a3d
commit 5810c770c7
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,8 @@ phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
// For production use set the CA certificate that is the issuer of the cert
// on the CAS server and uncomment the line below
// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
//phpCAS::setCasServerCACert($cas_server_ca_cert_path);
phpCAS::setNoCasServerValidation();
// force CAS authentication
phpCAS::forceAuthentication();

View file

@ -251,7 +251,12 @@ function generatePath($path)
//CAS
require_once("phpCAS-1.3.6/CAS.php");
phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
phpCAS::setNoCasServerValidation();
// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
phpCAS::forceAuthentication();
if (isset($_REQUEST['logout'])) {
phpCAS::logout();