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).
しかし、手動でデフォルト認証成功URLへのリダイレクト時に(私の場合には、それは単にhttp://localhost:8080です)それは成功してログアウトボタンを表示し、それも機能しています。以下は
これまでのコードです:
@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
私はこのエラーを克服するために必要な他に何が?
ありがとう、トンの男....タイマーの問題は私の側にあった...非常にばかげた間違い実際には学ぶことが良い –
これは正しいです。私はストームパスのために働く。すべてのサーバーが自動的にインターネット時間に同期されます。私は、ローカルサーバーの時刻がずれていたと推測しています。 –