Commit e419cc12 authored by Reynaldi Addriantama's avatar Reynaldi Addriantama

disable cas

parent be45ee8d
......@@ -849,19 +849,19 @@ class UserController extends \Application\Master\GlobalActionController
$session->stop();
$this->cas = new \phpCAS();
$this->cas_server_url = "https://login.itb.ac.id/cas";
// $this->cas = new \phpCAS();
// $this->cas_server_url = "https://login.itb.ac.id/cas";
$defaults = array('path' => '', 'port' => 443);
$cas_url = array_merge($defaults, parse_url($this->cas_server_url));
$this->cas::client(CAS_VERSION_2_0,
$cas_url['host'],
$cas_url['port'],
$cas_url['path'],false);
// $defaults = array('path' => '', 'port' => 443);
// $cas_url = array_merge($defaults, parse_url($this->cas_server_url));
// $this->cas::client(CAS_VERSION_2_0,
// $cas_url['host'],
// $cas_url['port'],
// $cas_url['path'],false);
$this->cas::setNoCasServerValidation();
$this->cas->forceAuthentication();
$this->cas->logout();
// $this->cas::setNoCasServerValidation();
// $this->cas->forceAuthentication();
// $this->cas->logout();
return $this->redirect()->toRoute('login');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment