fix delete user info additional data

This commit is contained in:
Efstratios Giannopoulos 2023-10-18 13:54:02 +03:00
parent 66c650495f
commit 5c17027df2
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@ public class UserInterceptor implements WebRequestInterceptor {
throw new MyApplicationException("Can not found user " + userId);
}
user = userInfos.get(0);
user.setAdditionalinfo("{\"data\":{\"avatar\":{\"url\":\"\"},\"zenodoToken\":\"\", \"expirationDate\": \"\", \"zenodoRefresh\": \"\", \"zenodoEmail\": \"\"}}"); //TODO: Authn
//user.setAdditionalinfo("{\"data\":{\"avatar\":{\"url\":\"\"},\"zenodoToken\":\"\", \"expirationDate\": \"\", \"zenodoRefresh\": \"\", \"zenodoEmail\": \"\"}}"); //TODO: Authn
}
CredentialEntity credentialEntity = new CredentialEntity();
@ -203,7 +203,7 @@ public class UserInterceptor implements WebRequestInterceptor {
credentialEntity.setCreationTime(new Date());
credentialEntity.setLastUpdateTime(new Date());
credentialEntity.setIsActive(IsActive.Active);
credentialEntity.setProvider(ProviderType.Keycloack);//TODO: Authn
credentialEntity.setProvider(ProviderType.Keycloack);
credentialEntity.setExternalId(subjectId);
credentialEntity.setEmail(email);
credentialEntity.setPublicValue(email);