git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/data-access/gcube-geonetwork-connector@156312 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
pasquale.vitale 2017-10-18 15:11:17 +00:00
parent f1fd6b06ec
commit 4b86c3cb43
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public class GeoNetworkConnectorRequestHandler extends RequestHandler {
protected static final String REQUEST_HANDLER_NAME = "authentication-filter";
private static final String GEONETWORK_CREDENTIALS = "/GeoNetwork/credentials/";
private static final String SDI = "/SDI";
private static final boolean GENERAL = true; //retrieve the general credentials from SDI (without web service)
private static final boolean GENERAL = false; //retrieve the general credentials from SDI (without web service)
private Logger logger;
private GCubeCache<String, String> gCubeCache;
@ -226,7 +226,7 @@ public class GeoNetworkConnectorRequestHandler extends RequestHandler {
}else{
String url = endpoint + GEONETWORK_CREDENTIALS + host + "?" + AuthenticationUtils.GCUBE_QUERY_STRING + "=" + token;
//https://sdi-d-d4s.d4science.org/sdi-service/gcube/service/GeoServer/credentials/geoserver1-d-d4s.d4science.org?gcube-token=feda0617-cd9d-4841-b6f0-e047da5d32ed-98187548
//http://sdi-d-d4s.d4science.org:80/sdi-service/gcube/service/GeoNetwork/credentials/geonetwork-sdi.dev.d4science.org?gcube-token=feda0617-cd9d-4841-b6f0-e047da5d32ed-98187548
return restClient.getAccessibleCredentials(url);
}
}