If I have this in my security.xml

<bean id="authenticationProcessingFilter"
class="org.acegisecurity.ui.webapp.AuthenticationP rocessingFilter">
<property name="authenticationManager" ref="authenticationManager"/>
<property name="authenticationFailureUrl"
value="/login.html?loginStatus=1"/>
<property name="alwaysUseDefaultTargetUrl" value="true"/>
<property name="defaultTargetUrl" value="/home.html"/>
<property name="filterProcessesUrl" value="/j_acegi_security_check"/>
</bean>

and this in faces.config
<navigation-rule>
<from-view-id>/login.xhtml</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/j_acegi_security_check?j_username=admin&amp;j_pass
word=admin</to-view-id>
<redirect />
</navigation-case>

it gives me a successful login - just wanted to test if it worked but if I
leave it as

<navigation-rule>
<from-view-id>/login.xhtml</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/j_acegi_security_check</to-view-id>
<redirect />
</navigation-case>

it doesnt log me in saying bad credentails
and if I remove the <redirect/>

it appends .html to the end of /j_acegi_security_check

..kace
-- 
View this message in context: 
http://www.nabble.com/acegi-and-jsf-tp16654660s2369p16678815.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to