You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mick Knutson <mi...@gmail.com> on 2006/11/22 05:01:15 UTC
acegi, jsf navigation question...
I have a link to my secured area and my admin area, on my home page. When I
click on my admin link, I get promoted for a username and password and am
authenticated through acegi fine. But after AUTH, I get forwarded to the
secured page, not the admin page, or page I originally requested.
How can I have acegi just intercept, and then forward to the requested page?
faces config:
==================================================
<navigation-rule>
<from-view-id>/views/common/logon.xhtml</from-view-id>
<navigation-case>
<from-action>#{authenticationController.authenticate
}</from-action>
<from-outcome>success</from-outcome>
<to-view-id>/views/secure/index.jsf</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<description>Various Administration functions...</description>
<display-name>Admin Utilities</display-name>
<from-view-id>/views/admin/index.xhtml</from-view-id>
<navigation-case>
<from-outcome>users</from-outcome>
<from-outcome>success</from-outcome>
<to-view-id>/views/admin/users.xhtml</to-view-id>
<redirect/>
</navigation-case>
</navigation-rule>
acegi applicationContext:
======================================================================
<bean id="exceptionTranslationFilter" class="
org.acegisecurity.ui.ExceptionTranslationFilter">
<property name="authenticationEntryPoint">
<bean class="
org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
<property name="loginFormUrl">
<value>/views/common/logon.jsf</value>
</property>
<property name="forceHttps">
<value>false</value>
</property>
</bean>
</property>
<property name="accessDeniedHandler">
<bean class="org.acegisecurity.ui.AccessDeniedHandlerImpl">
<property name="errorPage">
<value>/error/error.jsp</value>
</property>
</bean>
</property>
</bean>
--
Thanks
DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson
Re: acegi, jsf navigation question...
Posted by Mick Knutson <mi...@gmail.com>.
Can anyone help me with this???
On 11/21/06, Mick Knutson <mi...@gmail.com> wrote:
>
> I have a link to my secured area and my admin area, on my home page. When
> I click on my admin link, I get promoted for a username and password and am
> authenticated through acegi fine. But after AUTH, I get forwarded to the
> secured page, not the admin page, or page I originally requested.
>
> How can I have acegi just intercept, and then forward to the requested
> page?
>
> faces config:
> ==================================================
> <navigation-rule>
> <from-view-id>/views/common/logon.xhtml</from-view-id>
> <navigation-case>
> <from-action>#{authenticationController.authenticate
> }</from-action>
> <from-outcome>success</from-outcome>
> <to-view-id>/views/secure/index.jsf</to-view-id>
> </navigation-case>
> </navigation-rule>
>
> <navigation-rule>
> <description>Various Administration functions...</description>
> <display-name>Admin Utilities</display-name>
> <from-view-id>/views/admin/index.xhtml</from-view-id>
> <navigation-case>
> <from-outcome>users</from-outcome>
> <from-outcome>success</from-outcome>
> <to-view-id>/views/admin/users.xhtml</to-view-id>
> <redirect/>
> </navigation-case>
> </navigation-rule>
>
>
> acegi applicationContext:
> ======================================================================
> <bean id="exceptionTranslationFilter" class="
> org.acegisecurity.ui.ExceptionTranslationFilter ">
> <property name="authenticationEntryPoint">
> <bean class="
> org.acegisecurity.ui.webapp.AuthenticationProcessingFilterEntryPoint">
> <property name="loginFormUrl">
> <value>/views/common/logon.jsf</value>
> </property>
> <property name="forceHttps">
> <value>false</value>
> </property>
> </bean>
> </property>
> <property name="accessDeniedHandler">
> <bean class="org.acegisecurity.ui.AccessDeniedHandlerImpl ">
> <property name="errorPage">
> <value>/error/error.jsp</value>
> </property>
> </bean>
> </property>
> </bean>
>
>
>
>
>
>
> --
>
> Thanks
>
> DJ MICK
> http://www.djmick.com
> http://www.myspace.com/mickknutson
--
Thanks
DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson