get zenodo.json config from application.properties
This commit is contained in:
parent
a17a009355
commit
a7a7035cdb
|
@ -41,7 +41,7 @@ public class ConfigLoaderImpl implements ConfigLoader{
|
||||||
public ZenodoConfig getZenodoConfig() {
|
public ZenodoConfig getZenodoConfig() {
|
||||||
if (zenodoConfig == null) {
|
if (zenodoConfig == null) {
|
||||||
try {
|
try {
|
||||||
zenodoConfig = mapper.readValue(getStreamFromPath("zenodo.json"), ZenodoConfig.class);
|
zenodoConfig = mapper.readValue(getStreamFromPath(environment.getProperty("configuration.zenodo"))), ZenodoConfig.class);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error(e.getLocalizedMessage(), e);
|
logger.error(e.getLocalizedMessage(), e);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
|
||||||
}
|
|
Loading…
Reference in New Issue