Commit 46556134 authored by Χάρης Παπαδόπουλος's avatar Χάρης Παπαδόπουλος
Browse files

WIP: CAS logout procedure

parent 2a1bdd59
...@@ -120,7 +120,7 @@ class CASLogout extends ControllerBase ...@@ -120,7 +120,7 @@ class CASLogout extends ControllerBase
return $response; return $response;
} }
phpCAS::handleLogoutRequests(); // phpCAS::handleLogoutRequests();
// phpCAS::logoutWithRedirectService('http://eduslim2.minedu.gov.gr/dist/#/school'); // phpCAS::logoutWithRedirectService('http://eduslim2.minedu.gov.gr/dist/#/school');
// session_unset(); // session_unset();
...@@ -134,12 +134,14 @@ class CASLogout extends ControllerBase ...@@ -134,12 +134,14 @@ class CASLogout extends ControllerBase
// phpCAS::logout(array('url'=>$this->redirectUrl)); // phpCAS::logout(array('url'=>$this->redirectUrl));
// phpCAS::logout(); // phpCAS::logout();
session_unset(); // session_unset();
session_destroy(); // session_destroy();
$this->logger->warning("hello from logout"); $this->logger->warning("hello from logout");
\Drupal::service('page_cache_kill_switch')->trigger(); // \Drupal::service('page_cache_kill_switch')->trigger();
return new RedirectResponseWithCookieExt("https://sso-test.sch.gr/logout", 302, []); // header('Location: https://sso-test.sch.gr/logout');
// return $response; // exit;
// return new RedirectResponseWithCookieExt("https://sso-test.sch.gr/logout", 302, []);
return $response;
} catch (\Exception $e) { } catch (\Exception $e) {
$this->logger->warning($e->getMessage()); $this->logger->warning($e->getMessage());
$response = new Response(); $response = new Response();
......
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