Baptiste 1 year ago
parent
commit
5810c770c7
2 changed files with 7 additions and 1 deletions
  1. 2
    1
      admin/index.php
  2. 5
    0
      photos.php

+ 2
- 1
admin/index.php View File

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

+ 5
- 0
photos.php View File

@@ -251,7 +251,12 @@ function generatePath($path)
251 251
 //CAS
252 252
 require_once("phpCAS-1.3.6/CAS.php");
253 253
 
254
+
254 255
 phpCAS::client(CAS_VERSION_2_0, "cas.insa-toulouse.fr", 443, 'cas', true);
256
+
257
+phpCAS::setNoCasServerValidation();
258
+// phpCAS::setCasServerCACert($cas_server_ca_cert_path);
259
+
255 260
 phpCAS::forceAuthentication();
256 261
 if (isset($_REQUEST['logout'])) {
257 262
         phpCAS::logout();

Loading…
Cancel
Save