Hi All!

I'm using JBOSS 2.6.8 with CAS 3.3.5 authentification. All works via single 
sign.

Now - there's need to include remember me feature in authentification.

In deployedConfigContext.xml added

<property name="authenticationMetaDataPopulators">
                        <list>
                                <bean 
class="org.jasig.cas.authentication.principal.RememberMeAuthenticationMetaDataPopulator"
 />
                        </list>
                </property> 


In cas-servlet.xml modified

<bean id="UsernamePasswordCredentialsValidator" 
class="org.jasig.cas.validation.UsernamePasswordCredentialsValidator" /> 

        <bean id="authenticationViaFormAction" 
class="org.jasig.cas.web.flow.AuthenticationViaFormAction"
                
p:centralAuthenticationService-ref="centralAuthenticationService"
                
p:formObjectClass="org.jasig.cas.authentication.principal.RememberMeUsernamePasswordCredentials"
                p:formObjectName="credentials"
                p:validator-ref="UsernamePasswordCredentialsValidator"
                p:warnCookieGenerator-ref="warnCookieGenerator" /> 
        

in casLoginView.jsp add 
<input type="checkbox" name="rememberMe" id="rememberMe" value="true" /> <label 
for="rememberMe">Remember Me</label>               


Now CAS cookie become long living (in my case 1 month).

But what about autologin to web-application?
Or this feature implementation must user realize?


Thanks.

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to