Skip to content
Snippets Groups Projects
Commit 5451b9b9 authored by Michael Simon's avatar Michael Simon
Browse files

NO_STORY set correct update fail and next scheduled update

for OIDC users on missing refresh token
parent 14f4ed0e
No related branches found
No related tags found
No related merge requests found
......@@ -158,6 +158,7 @@ public class OidcUserUpdater extends AbstractUserUpdater<OidcUserEntity> {
OidcRpConfigurationEntity rpConfig = user.getIssuer();
if (user.getAttributeStore().get("refreshToken") == null) {
updateFail(user);
throw new UserUpdateException("refresh token is null");
}
......@@ -389,6 +390,8 @@ public class OidcUserUpdater extends AbstractUserUpdater<OidcUserEntity> {
user.setLastUpdate(new Date());
user.setLastFailedUpdate(null);
user.setExpireWarningSent(null);
user.setExpiredSent(null);
user.setScheduledUpdate(getNextScheduledUpdate());
if (changed) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment