[ADF Security] Wrong redirecting/forwarding after login
915091Apr 5 2013 — edited Apr 9 2013Hello there,
we have a problem with the ADF Security.
First of all we have activated the ADF Security with Authentication only and we're going to use the Form-Based approach.
So whenever a user is trying to access a secured page - the user will automatically be redirected to our defined login.jsf page. We must us a generic approach, since this login dialog is going to be used with different applications and should work with every entrypoint (accessed secured page). The code which is handling the login is based on the code of which is documented in the Fusion Developer Guide. So for the generic approach we can't hardcode a success_url in our login method and have to get the originally called page.
FacesContext.getViewRoot().getViewId is obviously not working, because it is holding the current page (login.jsf). I tried to get the page via the RequestMap.
FacesContext.getExternalContext().getRequestMap();
There is an entry with the key "oracle.adfinternal.view.faces.activedata.PREVIOUS_VIEW_ID", but it is also containing the current login.jsf page.
So, does someone has a clue how to achieve this redirection?
P.S. The JDeveloper version is 11.1.2.3.0.