return keycloakUser;
}
protected User createKeycloakUser(final AccessToken accessToken) {
final User user = new UserImpl(accessToken.getId(), createRoles(accessToken
.getRealmAccess().getRoles()));
final Collection<KeycloakProperty> properties = getKeycloakUserProperties(accessToken);
for (KeycloakProperty property : properties) {
if (property.hasValue()) {
user.setProperty(property.name, property.value);
}
}
return user;
}