Matt Raible-3 wrote:
> 
> Acegi should set the cookie for you.  Adding attributes to the checkbox
> Thanks for the response Matt.
> 
> The problem was in my submit button...I was using an image with javascript
> to submit the form, but for some reason it didnt like this.  I changed it
> to a <input type="image"> and the submit went through properly, and the
> cookie was saved.
> 
> -Zak
> 
> 
> field shouldn't affect anything.
> 
> Matt
> 
> On 2/9/07, Zakir <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello Experts.
>>
>> I am using appfuse 1.9.4, and I am trying to implement acegi's rememberMe
>> service.  I am aware that this works with appfuse right out of the box,
>> but
>> I have some how managed to mees it up.  From what I see, my
>> ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE_KEY is not even being set in my
>> browser.  I have slightly edited my login form, but it still has a form
>> with
>> this tag:
>>
>> <form method="post" name="loginForm" id="loginForm" action="<c:url
>> value="/j_security_check"/>" onsubmit="saveUsername(this);return
>> validateForm(this)">
>>
>> and the checkbox on my login page has this tag:
>>
>> <input type="checkbox" name="rememberMe" id="rememberMe" class="check"
>> style="padding: 0px; margin: 0px;" tabindex="3">
>> (as you can see, I've added some style.)
>>
>> In my security.xml, here are the relavant beans:
>>
>> ********************
>> <bean id="filterChainProxy"
>> class="org.acegisecurity.util.FilterChainProxy
>> ">
>>         <property name="filterInvocationDefinitionSource">
>>             <value>
>>                 CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
>>                 PATTERN_TYPE_APACHE_ANT
>>
>>
>> /**=httpSessionContextIntegrationFilter,authenticationProcessingFilter,securityContextHolderAwareRequestFilter,rememberMeProcessingFilter,anonymousProcessingFilter,exceptionTranslationFilter,filterInvocationInterceptor
>>             </value>
>>         </property>
>>     </bean>
>>
>> <bean id="authenticationProcessingFilter"
>> class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter">
>>         <property name="authenticationManager"
>> ref="authenticationManager"/>
>>         <property name="authenticationFailureUrl"
>> value="/login.jsp?error=true"/>
>>         <property name="defaultTargetUrl" value="/"/>
>>         <property name="filterProcessesUrl" value="/j_security_check"/>
>>         <property name="rememberMeServices" ref="rememberMeServices"/>
>>     </bean>
>>
>> <bean id="rememberMeProcessingFilter"
>> class="org.acegisecurity.ui.rememberme.RememberMeProcessingFilter">
>>         <property name="authenticationManager"
>> ref="authenticationManager"/>
>>         <property name="rememberMeServices" ref="rememberMeServices"/>
>>     </bean>
>>
>> <bean id="rememberMeServices"
>> class="org.acegisecurity.ui.rememberme.TokenBasedRememberMeServices">
>>         <property name="userDetailsService" ref="userDao"/>
>>         <property name="key" value="appfuseRocks"/>
>>         <property name="parameter" value="rememberMe"/>
>>     </bean>
>>
>>     <bean id="authenticationManager"
>> class="org.acegisecurity.providers.ProviderManager">
>>         <property name="providers">
>>             <list>
>>                 <ref local="daoAuthenticationProvider"/>
>>                 <ref local="anonymousAuthenticationProvider"/>
>>                 <ref local="rememberMeAuthenticationProvider"/>
>>             </list>
>>         </property>
>>     </bean>
>>
>> <bean id="rememberMeAuthenticationProvider"
>> class="
>> org.acegisecurity.providers.rememberme.RememberMeAuthenticationProvider">
>>         <property name="key" value="appfuseRocks"/>
>> </bean>
>>
>> *******************
>>
>> What is actually in charge of setting the cookie?
>> Any ideas on what to do?
>>
>> Thanks in advance:)
>> --
>> View this message in context:
>> http://www.nabble.com/RememberMe-Cookie-Not-Being-Set-tf3201135s2369.html#a8888258
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> http://raibledesigns.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RememberMe-Cookie-Not-Being-Set-tf3201135s2369.html#a8890610
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