Hi there,

I'd like to setup this usecase, in Shale/JSF...

1) user requests a url that is configured as "secured".
2) system checks for logged in user.
3) if the user is not logged in, then redirect to the login page.
4) on successfull login, redirect to orginally requested URL.

currently I just have a index.jsp that forwards to home.jsf.  In my
faces-config, I have
    <!--home navigation rule-->
    <navigation-rule>
        <from-view-id>*</from-view-id>
        <navigation-case>
            <from-action>#{login.checkAuthenticated}</from-action>
            <from-outcome>unauthenticated</from-outcome>
            <to-view-id>/login/login.jsf</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-action>#{login.checkAuthenticated}</from-action>
            <from-outcome>authenticated</from-outcome>
            <to-view-id>/home.jsf</to-view-id>
        </navigation-case>
    </navigation-rule>

the checkAuthenticated method isn't even being called when the home.jsf page
is called.

anybody know what I'm missing?

Reply via email to