Thanks for your response.
Yes I am familiar with the anonymous role but it doesn't work, This is not my first time using ADF Security which is why I am surprised with this behavior.
I rebuilt the application and now the method before login fires. But i am getting the same behavior after login.
After Loging in I go to the landing page "AppStart" (which is set to the anonymous role). Here there are two navigation buttons "goProducts" and "goUsers" that are using task flow control flows to navigate to two pages.
Clicking on those buttons don't do anything. Unless i edit the URL to the page i want to open and it opens.
After this trick i can go back to the landing page and now the navigation works fine.
Why is the navigation not working the first time after login?
Why does it work after navigating to the page manually by typing the URL?
Does this make any sense?
From the image I can't tell. Can you provide a reproducible test case built on the hr DB schema?
I made a test case. https://www.dropbox.com/sh/2fo1g4o8d274zdz/AADcpsVYyL4DXdVbD6G1qNfJa?dl=0
There are two versions, A "BeforeSecurity" and an "AfterSecurity".
In the "BeforeSecurity" version just run Home.jsf, You can see that navigation works between Home.jsf and Emp.jsf.
In the "AfterSecurity" version navigation breaks.
Gado, you made a small error in your sign in bean. You redirect to '.../Home.jsf' which is the jsf page. This would be O if you don't want to do anything on the page. However, the redirect to the page disables the ADF functionality. So no more navigation via the ADF components. To allow ADF to do its magic, you need to redirect to the view instead of the page.
String loginUrl = ectx.getRequestContextPath() + "/faces/Home";
instead of '/faces/Home.jsf' and the navigation after the login will work.
That's a very sneaky little bug!
Navigation and the method activities are now working.
Thanks for the solution Timo, And the explanation!