Announcement Announcement Module
Collapse
No announcement yet.
Remember Me configured, no Cookie Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Remember Me configured, no Cookie

    In my Application, the user will authenticated over Rest with Basic-Authentication. The Remember-Me Cookie does not exist in the Response. Can anybody helps me or give me an advice?

    My security.xml
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans:beans xmlns="http://www.springframework.org/schema/security"
    	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"
    	xsi:schemaLocation="http://www.springframework.org/schema/beans
    						http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
    						http://www.springframework.org/schema/security  
    						http://www.springframework.org/schema/security/spring-security-3.1.xsd">
    
    	<global-method-security pre-post-annotations="enabled"
    		secured-annotations="enabled">
    		<!-- <expression-handler ref="expressionHandler" /> -->
    	</global-method-security>
    
    	<http use-expressions="true" create-session="stateless">
    		<!-- <intercept-url pattern="/restnet/**" access="hasRole('ROLE_USER')"/> -->
    		<intercept-url pattern="/**" access="isAuthenticated()" />
    		<http-basic />
    		<custom-filter ref="digestFilter" after="BASIC_AUTH_FILTER" />
    		<remember-me key="key"
    			user-service-ref="userService" token-validity-seconds="30" />
    	</http>
    	<!-- <debug /> -->
    
    	<authentication-manager alias="authenticationManager">
    		<authentication-provider user-service-ref="userService" />
    	</authentication-manager>
    
    
    	<!-- Beans -->
    	<!-- <beans:bean id="expressionHandler" class="org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler"> 
    		<property name="permissionEvaluator" ref="appPermissionEvaluator" /> </beans:bean> 
    		<beans:bean id="appPermissionEvaluator" class="de.xxx.xxx.server.application.services.security.AppPermissionEvaluator"/> -->
    
    	<!-- Basic/Digest-Authentication -->
    	<beans:bean id="digestFilter"
    		class="org.springframework.security.web.authentication.www.DigestAuthenticationFilter">
    		<beans:property name="userDetailsService" ref="userService" />
    		<beans:property name="authenticationEntryPoint" ref="digestEntryPoint" />
    	</beans:bean>
    
    	<beans:bean id="digestEntryPoint"
    		class="org.springframework.security.web.authentication.www.DigestAuthenticationEntryPoint">
    		<beans:property name="realmName" value="Realm" />
    		<beans:property name="key" value="acegi" />
    	</beans:bean>
    
    
    
    	<!-- Remember Me -->
    	<beans:bean id="rememberMeFilter"
    		class="org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter">
    		<beans:property name="rememberMeServices" ref="rememberMeServices" />
    		<beans:property name="authenticationManager" ref="authenticationManager" />
    	</beans:bean>
    
    	<beans:bean id="rememberMeServices"		class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices">
    		<beans:property name="userDetailsService" ref="userService" />
    		<beans:property name="key" value="key" />
    	</beans:bean>
    
    	<beans:bean id="rememberMeAuthenticationProvider"
    		class="org.springframework.security.authentication.RememberMeAuthenticationProvider">
    		<beans:property name="key" value="key" />
    	</beans:bean>
    
    
    </beans:beans>
Working...
X