forked from vergnet/site-accueil-insa
lol
This commit is contained in:
parent
8c74ba9a3d
commit
5810c770c7
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue