Fixes bug on missing configuration on OpenAIRE login.

This commit is contained in:
gkolokythas 2019-11-13 17:34:39 +02:00
parent e63eb8f205
commit dee20d50ed
4 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ public class OpenAIRECustomProviderImpl implements OpenAIRECustomProvider {
HttpHeaders headers = this.createBearerAuthHeaders(accessToken); HttpHeaders headers = this.createBearerAuthHeaders(accessToken);
HttpEntity<String> entity = new HttpEntity<>(headers); HttpEntity<String> entity = new HttpEntity<>(headers);
Map<String, Object> values = restTemplate.exchange(this.environment.getProperty("openaire.login.userinfo_endpoint"), HttpMethod.GET, entity, Map.class).getBody(); Map<String, Object> values = restTemplate.exchange(this.environment.getProperty("openaire.login.user_info_url"), HttpMethod.GET, entity, Map.class).getBody();
return new OpenAIREUser().getOpenAIREUser(values); return new OpenAIREUser().getOpenAIREUser(values);
} }

View File

@ -53,7 +53,7 @@ openaire.login.client_id=
openaire.login.client_secret= openaire.login.client_secret=
openaire.login.access_token_url= openaire.login.access_token_url=
openaire.login.redirect_uri= openaire.login.redirect_uri=
openaire.login.userinfo_endpoint= openaire.login.user_info_url=
#############CONFIRMATION EMAIL CONFIGURATIONS######### #############CONFIRMATION EMAIL CONFIGURATIONS#########
conf_email.expiration_time_seconds=14400 conf_email.expiration_time_seconds=14400

View File

@ -71,7 +71,7 @@ openaire.login.client_id=
openaire.login.client_secret= openaire.login.client_secret=
openaire.login.access_token_url= openaire.login.access_token_url=
openaire.login.redirect_uri= openaire.login.redirect_uri=
openaire.login.userinfo_endpoint= openaire.login.user_info_url=
#############SPRING DATASOURCE CONFIGURATIONS######### #############SPRING DATASOURCE CONFIGURATIONS#########
spring.datasource.maxIdle: 10 spring.datasource.maxIdle: 10

View File

@ -77,6 +77,7 @@ openaire.login.client_id=
openaire.login.client_secret= openaire.login.client_secret=
openaire.login.access_token_url= openaire.login.access_token_url=
openaire.login.redirect_uri= openaire.login.redirect_uri=
openaire.login.user_info_url=
#############ZENODO CONFIGURATIONS######### #############ZENODO CONFIGURATIONS#########
zenodo.url=https://sandbox.zenodo.org/api/ zenodo.url=https://sandbox.zenodo.org/api/