Merge pull request #4232 from wvdhaute/token-store

[KEYCLOAK-5067] Allow refreshable context to have an optional adapter token store
This commit is contained in:
Marek Posolda 2017-07-03 20:55:26 +02:00 committed by GitHub
commit 09ec642543

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;
}