I have a Spring Boot application which uses the Okta SDK. I created an Okta Service Application which uses a public/private key to authenticate my Spring application.
The problem: I stopped my Spring application for a longer period of time (a couple of weeks), at startup I get the error:
Caused by: com.okta.sdk.impl.oauth2.OAuth2HttpException: invalid_client - The client_assertion token has an expiration too far into the future. Caused by: com.okta.sdk.resource.ResourceException: HTTP 401, Okta null (null)
This problem seems to be self fixing, sometimes it takes hours until I am able to startup my application, other times it starts after a second startup attempt, lot’s of times it starts without any error.
From the Okta System Log, the reason for the fail is:
I couldn’t find anything related to this problem in the documentation, so maybe someone knows what the problem is and can give some solutions?