0
Spring Security (Spring Boot를 기반으로 함)와 StormPath를 통합하려고합니다.STORMPATH : '발행 시점'(iat)이 현재 서버 시간보다 늦기 때문에 토큰이 유효하지 않습니다.
모두 다음과 같은 오류 로그인을 성공적으로 사용자 자마자 잘 작동하지만,가 발생하기 :
그러나
Sat Feb 18 12:43:27 IST 2017
There was an unexpected error (type=Internal Server Error, status=500).
com.stormpath.sdk.resource.ResourceException: HTTP 400, Stormpath 10012 (https://docs.stormpath.com/rest/product-guide/latest/errors.html#error-10012), RequestId 7e042da0-f5a9-11e6-afb8-22000be1c7ec: Token is invalid because the 'issued at' time (iat: 2017-02-18T07:13:27.000Z) is later than the current server time (2017-02-18T07:12:39.000Z).
수동으로 (내 경우에는 단순히
http://localhost:8080의) 기본 인증 성공 URL로 리디렉션시 , 그것은 successflly 로그 아웃 버튼을 보여주는 너무 작동합니다. 다음은
지금까지 코드 :
@Configuration
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
@Override
protected void configure(HttpSecurity http) throws Exception {
http.apply(stormpath());
}
}
application.properties :이 오류를 극복 할 필요가 뭐가
stormpath.client.apiKey.id = xxxx
stormpath.client.apiKey.secret = xxxxx
?
감사합니다. 톤 문제 .... 타이머 문제는 내 편이었습니다 ... 아주 바보 같은 실수를 배웠습니다. 실제로는 좋은데 –
이것은 맞습니다. 나는 폭풍우로 일한다. 모든 서버가 인터넷 시간과 자동으로 동기화됩니다. 로컬 서버 시간이 꺼 졌다고 생각합니다. –