Skip to content

Commit

Permalink
on simplifiera le code plus tard...
Browse files Browse the repository at this point in the history
  • Loading branch information
mhetru committed Jul 31, 2018
1 parent c4cd6ea commit fab1962
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Security/CasListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ public function handle(GetResponseEvent $event) {
\phpCAS::handleLogoutRequests(false);
}

/*
// si le mode gateway est activé..
if ($this->getParameter('gateway')) {

Expand Down Expand Up @@ -113,7 +111,8 @@ public function handle(GetResponseEvent $event) {
}
}

*/
/*
// prévision en vue de la simplication du code...
// si on force l'authentification...
if($this->getParameter('force')) {
Expand All @@ -129,7 +128,7 @@ public function handle(GetResponseEvent $event) {
$authenticated = false;
// si la variable de session cas_user n'existe pas...
if (!isset($_SESSION['cas_user'])) {
//if (!isset($_SESSION['cas_user'])) {
// VERIFICATION CONNEXION CAS
if ($this->getParameter('gateway')) {
Expand All @@ -149,7 +148,7 @@ public function handle(GetResponseEvent $event) {
// ... sinon on le positionne à false!
$_SESSION['cas_user'] = false;
}
}
//}
// POSITIONNEMENT DU CAS TOKEN SELON LES VARIABLES DE SESSION
if (!$_SESSION['cas_user']) {
Expand All @@ -163,6 +162,7 @@ public function handle(GetResponseEvent $event) {
$this->tokenStorage->setToken($this->authenticationManager->authenticate($token));
return;
}
*/

// on arrive ici quand on a forcé l'authentification...
$token = new CasToken();
Expand Down

0 comments on commit fab1962

Please sign in to comment.