2014-11-07 23:19 GMT+01:00 Emmanuel Bouton <[email protected]>:

> 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 :
>

=> Erratum : for both of my adapters ;)


>
>     if (!$authenticationService->hasIdentity()) {
>         $authenticationService->authenticate($adapter);
>     }
>
> Any ideas ?
>
> Thanks
> Emmanuel
>

Reply via email to