i'm trying to make a Zend 2 classical Authentication, without using a DbTable check.
I'll explain better
- I've a custom method authenticate() that is able to authenticate a user (independently from Zend Auth).
- I've made a custom class that extends Zend\Authentication\Storage\Session
Now i want to save data into session with something like this:
$authService->getStorage()->write($this);
The problem is using that code when in the next page call i perform:
if($authService->hasIdentity())
it response false.
So, how can i do to save identity using custom authentication? i think i can implement Zend\Authentication\Adapter\AdapterInterface but i don't known exacly how...
any help is appreciated, thanks a lot :)