formapro / FpOpenIdBundle

Symfony2 OpenID security extension
53 stars 31 forks source link

Redirect after login #17

Closed PomepuyN closed 12 years ago

PomepuyN commented 12 years ago

I don't know if it's an issue or just a question. By default, when an user has been logged, he is redirected to the default page (/). Is there a way for the bundle to redirect him to the page he comes from ?

makasim commented 12 years ago

I can not prove it is implemented in the bundle, I believe not . The security component itself has such functionality

PomepuyN commented 12 years ago

According the security documentation ( http://symfony.com/doc/2.0/book/security.html#using-a-traditional-login-form ), if nothing is specified, the user should be redirected to the page he comes from. I tried a lot pf things but I was unable to make it work.

makasim commented 12 years ago

it would not work as described in documentation, because openid authentication is done in several steps, and the info about the page you came from should be passed through all those steps. Currently this is not implemented