Hi all,
In my app I have 3 types of controllers :
- Public controllers without any authentication
- SSO Authenticated controllers
- HTTP Basic Authenticated controllers (for a webservice part)
How should I manage these 2 way of authentication ? In controllers
onDispatch method ? Through events (which one) ?
Said differently, I don't know where I should put this code for both of my
authentication services :
if (!$authenticationService->hasIdentity()) {
$authenticationService->authenticate($adapter);
}
Any ideas ?
Thanks
Emmanuel