-
Notifications
You must be signed in to change notification settings - Fork 111
append_previous_uri not compatible with ZfcUser #252
Comments
Looks like for ZfcUser module they've decided to go ahead with routes instead of URI (https://github.com/ZF-Commons/ZfcUser/pull/487/files), saying that it's insecure using the URI, so I was wondering if there is any chance to change this module to work with ZfcUser? I guess we could replace URI with route redirect, or maybe use both versions? I guess for using both an additional "else if" could be added for "append_previous_route" option here:
What do you guys think? |
Hi. I'm not sure to understand. The append_previous_uri cannot be used for routes, as it is a copy of the route that was not accessible. When we retrieve the URL that was tried to be accessed, we definitely cannot transform an URI to a route. And even if we could, we would loose some important parameters like query parameters. Or did I misunderstood something... |
No, I think you are right, I haven't thought about that. Was just brainstorming on how to fix this compatibility issue, but looks like ZfcUser should then use URI as well, in order to work with ZfcRbac I guess. |
Sorry to bring this up, again. But imho the Is there any way to solve this? E.g. with another option like |
Its possible to override the ZfcUser RedirectCallbackFactory in the config of your module
which will let you insert your own RedirectCallback in the default ZfcUser\Controller\UserController.
dont forget to set the
|
Before I implemented ZfcRbac I was redirecting user after login via ZfcUser "use_redirect_parameter_if_present", but I somehow can't get it working now. If I have that option enabled in ZfcUser and ZfcRbac at the same time, I get an error because the 1st one expects ROUTE to be passed as "redirectTo" parameter and the 2nd one is passing URL. Is there a way around it or should that get changed on one or the other side to keep them compatible?
Edit: I think that using URL for redirect is more flexible than using route only, so I'll open an issue on ZfcUSer instead: ZF-Commons/ZfcUser#473
The text was updated successfully, but these errors were encountered: