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
|
// For production use set the CA certificate that is the issuer of the cert
|
||||||
// on the CAS server and uncomment the line below
|
// 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
|
// force CAS authentication
|
||||||
phpCAS::forceAuthentication();
|
phpCAS::forceAuthentication();
|
||||||
|
|
|
@ -251,7 +251,12 @@ function generatePath($path)
|
||||||
//CAS
|
//CAS
|
||||||
require_once("phpCAS-1.3.6/CAS.php");
|
require_once("phpCAS-1.3.6/CAS.php");
|
||||||
|
|
||||||
|
|
||||||
phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
|
phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
|
||||||
|
|
||||||
|
phpCAS::setNoCasServerValidation();
|
||||||
|
// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
|
||||||
|
|
||||||
phpCAS::forceAuthentication();
|
phpCAS::forceAuthentication();
|
||||||
if (isset($_REQUEST['logout'])) {
|
if (isset($_REQUEST['logout'])) {
|
||||||
phpCAS::logout();
|
phpCAS::logout();
|
||||||
|
|
Loading…
Reference in a new issue