im trying to observer security.authentication.success and than redirect 
user based on the role. i've found 2 solutions, both mentioned in the gist 
together with my code
https://gist.github.com/gondo/6261528

im currently using option 2 with additional listener for kernel.response 
but i feel that this is wrong, as my function would get unnecessary 
evaluated on every response while i need to change response just on 
security.authentication.success.

i do not want to replace/extend DefaultAuthenticationSuccessHandler as i do 
not want to loose the current/future functionality and i do not want to 
keep an eye on this with future symfony, FOSUser updates.

it would be much easier if i could do $event->setResponse(..) inside handle 
function. 
basically havingsetResponse on AuthenticationEvent.

what is the proper way of doing this?

-- 
-- 
If you want to report a vulnerability issue on Symfony, please read the 
procedure on http://symfony.com/security

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to symfony-devs@googlegroups.com
To unsubscribe from this group, send email to
symfony-devs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Symfony developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to symfony-devs+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to