get zenodo.json config from application.properties

This commit is contained in:
Aldo Mihasi 2022-12-13 12:22:24 +02:00
parent a17a009355
commit a7a7035cdb
2 changed files with 1 additions and 13 deletions

View File

@ -41,7 +41,7 @@ public class ConfigLoaderImpl implements ConfigLoader{
public ZenodoConfig getZenodoConfig() {
if (zenodoConfig == null) {
try {
zenodoConfig = mapper.readValue(getStreamFromPath("zenodo.json"), ZenodoConfig.class);
zenodoConfig = mapper.readValue(getStreamFromPath(environment.getProperty("configuration.zenodo"))), ZenodoConfig.class);
} catch (IOException e) {
logger.error(e.getLocalizedMessage(), e);
}

View File

@ -1,12 +0,0 @@
{
"depositType": 2,
"repositoryId": "Zenodo",
"accessToken": "pcqw4LGLrhp17FF5GoXNCXakkEi82ThchZw7Tk4qh74VrDE3EmliG3UlhYtd",
"repositoryUrl": "https://sandbox.zenodo.org/api/",
"repositoryAuthorizationUrl": "https://sandbox.zenodo.org/oauth/authorize",
"repositoryRecordUrl": "https://sandbox.zenodo.org/record/",
"repositoryAccessTokenUrl": "https://sandbox.zenodo.org/oauth/token",
"repositoryClientId": "hEmVRNc1OzRmWyi2GDR3XVKbhG3OtfJXLXkkOGXx",
"repositoryClientSecret": "7VSU0NjiAg0P3mv14wemMYy2XhvlmV6F7xoszxPH4ZDx98v8FdMpBbxlncqr",
"redirectUri": "http://localhost:4200/login/external/zenodo"
}