forked from vergnet/site-accueil-insa
la sécu bordel
This commit is contained in:
parent
34c8e839c5
commit
8c74ba9a3d
2 changed files with 0 additions and 6 deletions
|
@ -11,11 +11,6 @@ phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
|
||||||
// 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);
|
||||||
|
|
||||||
// For quick testing you can disable SSL validation of the CAS server.
|
|
||||||
// THIS SETTING IS NOT RECOMMENDED FOR PRODUCTION.
|
|
||||||
// VALIDATING THE CAS SERVER IS CRUCIAL TO THE SECURITY OF THE CAS PROTOCOL!
|
|
||||||
phpCAS::setNoCasServerValidation();
|
|
||||||
|
|
||||||
// force CAS authentication
|
// force CAS authentication
|
||||||
phpCAS::forceAuthentication();
|
phpCAS::forceAuthentication();
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,6 @@ function generatePath($path)
|
||||||
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::forceAuthentication();
|
phpCAS::forceAuthentication();
|
||||||
if (isset($_REQUEST['logout'])) {
|
if (isset($_REQUEST['logout'])) {
|
||||||
phpCAS::logout();
|
phpCAS::logout();
|
||||||
|
|
Loading…
Reference in a new issue