Fixes bug on missing configuration on OpenAIRE login.
This commit is contained in:
parent
e63eb8f205
commit
dee20d50ed
|
@ -27,7 +27,7 @@ public class OpenAIRECustomProviderImpl implements OpenAIRECustomProvider {
|
|||
HttpHeaders headers = this.createBearerAuthHeaders(accessToken);
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ openaire.login.client_id=
|
|||
openaire.login.client_secret=
|
||||
openaire.login.access_token_url=
|
||||
openaire.login.redirect_uri=
|
||||
openaire.login.userinfo_endpoint=
|
||||
openaire.login.user_info_url=
|
||||
|
||||
#############CONFIRMATION EMAIL CONFIGURATIONS#########
|
||||
conf_email.expiration_time_seconds=14400
|
||||
|
|
|
@ -71,7 +71,7 @@ openaire.login.client_id=
|
|||
openaire.login.client_secret=
|
||||
openaire.login.access_token_url=
|
||||
openaire.login.redirect_uri=
|
||||
openaire.login.userinfo_endpoint=
|
||||
openaire.login.user_info_url=
|
||||
|
||||
#############SPRING DATASOURCE CONFIGURATIONS#########
|
||||
spring.datasource.maxIdle: 10
|
||||
|
|
|
@ -77,6 +77,7 @@ openaire.login.client_id=
|
|||
openaire.login.client_secret=
|
||||
openaire.login.access_token_url=
|
||||
openaire.login.redirect_uri=
|
||||
openaire.login.user_info_url=
|
||||
|
||||
#############ZENODO CONFIGURATIONS#########
|
||||
zenodo.url=https://sandbox.zenodo.org/api/
|
||||
|
|
Loading…
Reference in New Issue