Commit 2a2d52e0 authored by David Surville's avatar David Surville
Browse files

Modification liée à une boucle infinie lors de l'authentification CAS

parent 4856973e
......@@ -57,7 +57,15 @@ class Cas extends AbstractAdapter implements ServiceManagerAwareInterface, Event
*/
public function authenticate(AuthEvent $e)
{
if ($e->getIdentity()) {
// if ($e->getIdentity()) {
// return;
// }
/* DS : modification liée à une boucle infinie lors de l'authentification CAS */
if ($this->isSatisfied()) {
$storage = $this->getStorage()->read();
$e->setIdentity($storage['identity'])
->setCode(AuthenticationResult::SUCCESS)
->setMessages(array('Authentication successful.'));
return;
}
......
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