我有一個啓用spring security的項目。我已經實現了使用可以正常工作的登錄表單記住我。但我也有登錄表單從谷歌/臉書社會登錄工作正常。問題是他們不記得用戶。有沒有辦法設置類似的「記住我」功能?實現一個記住我的春天社會
對於正常的登錄頁面我目前的Spring配置:
<http access-denied-page="/login?authorization_error=true"
disable-url-rewriting="true" authentication-manager-ref="formAuthenticationManager"
xmlns="http://www.springframework.org/schema/security">
<intercept-url pattern="/account/**" access="ROLE_USER" />
<remember-me key="iRemember"
token-validity-seconds="1209600" user-service-ref="formClientDetailsUserService" />
<form-login authentication-failure-url="/login?authentication_error=true"
default-target-url="/account/" login-page="/login"
login-processing-url="/login.do" />
<logout logout-success-url="http://example.com" logout-url="/logout" />
<anonymous />
</http>
創建了一張票:https://jira.spring.io/browse/SOCIAL-448 – Sanjay 2015-01-22 11:01:11
我有興趣總是記住我,並且我已經添加了setAlwaysRemember(true)。但是,春天似乎忽視了社交。那麼我如何將RememberMeServices與社交結合? – checklist 2015-10-27 09:55:36
rememberMeServices.setAlwaysRemember(真),正如上文是爲我工作,我記得。 – Sanjay 2015-10-27 11:02:24