Hello, I develop a plugin for authentificate with a CAS. The CAS accept the connexion but when I create a Zend_Session_Namespace, Omeka don’t connect the user. I thinks the problem is I use the Zend’s SaveHandler but I need the Omeka’s SaveHandler. How I can use the good SaveHandler or if this don’t is the problem, where is the problem. My function is :
$result = $authAdapter->authenticate();
// echo phpCAS::getUser();
// var_dump(phpCAS::getAttributes());
// var_dump($result);
// exit();
if ($result->isValid()) {
echo "valide";
$session = new Zend_Session_Namespace;
// Zend_Session::forgetMe();
var_dump($session);
exit();
if ($session->redirect) {
$this->_helper->redirector->gotoUrl($session->redirect);
} else {
$this->_helper->redirector->gotoUrl('/admin');
}
}
The result of the authentification is valid. Sorry the spelling mistakes, I’m not good at English.