diff --git a/distro/changelog.xml b/distro/changelog.xml index ced7939..da2bb1f 100644 --- a/distro/changelog.xml +++ b/distro/changelog.xml @@ -1,5 +1,5 @@ - + Fixed cast on Replace by External [issue #4883] diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java index b0928ac..fa9d561 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/SessionUtil.java @@ -131,12 +131,7 @@ public class SessionUtil { public static String getToken(ASLSession aslSession) { String token = null; if (Constants.DEBUG_MODE) { - List userRoles = new ArrayList<>(); - userRoles.add(Constants.DEFAULT_ROLE); - - token = null;// authorizationService().build().generate( - // aslSession.getUsername(), userRoles); - + token = Constants.DEFAULT_TOKEN; } else { token = aslSession.getSecurityToken(); } diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java index 8613f55..3984fe5 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/shared/Constants.java @@ -12,9 +12,10 @@ package org.gcube.portlets.user.td.gwtservice.shared; public class Constants { public static final boolean DEBUG_MODE = false; public static final boolean TEST_ENABLE = false; - - public final static String DEFAULT_USER = "test.user"; - public final static String DEFAULT_SCOPE = "/gcube/devsec/devVRE"; + + public static final String DEFAULT_USER = "giancarlo.panichi"; + public final static String DEFAULT_SCOPE = "/gcube/devNext"; + public final static String DEFAULT_TOKEN = "16e65d4f-11e0-4e4a-84b9-351688fccc12-98187548"; public static final String DEFAULT_ROLE = "OrganizationMember"; public final static String FILE_XML_MIMETYPE = "application/xml";