Allow refreshable context to have an optional adapter token store

This commit is contained in:
Wim Vandenhaute 2017-06-15 15:24:07 +02:00
parent f0d1149311
commit 0e0140d88b

View file

@ -155,7 +155,9 @@ public class RefreshableKeycloakSecurityContext extends KeycloakSecurityContext
this.refreshToken = response.getRefreshToken();
}
this.tokenString = tokenString;
tokenStore.refreshCallback(this);
if (tokenStore != null) {
tokenStore.refreshCallback(this);
}
return true;
}