Updated to Auth 2.0
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@131619 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a1212f3197
commit
6090403253
|
@ -1,5 +1,5 @@
|
|||
<ReleaseNotes>
|
||||
<Changeset component="org.gcube.portlets-user.tabular-data-gwt-service.2-13-0" date="2016-09-30">
|
||||
<Changeset component="org.gcube.portlets-user.tabular-data-gwt-service.2-13-0" date="2016-10-01">
|
||||
<Change>Fixed cast on Replace by External [issue #4883]</Change>
|
||||
</Changeset>
|
||||
<Changeset component="org.gcube.portlets-user.tabular-data-gwt-service.2-12-0" date="2016-07-15">
|
||||
|
|
|
@ -131,12 +131,7 @@ public class SessionUtil {
|
|||
public static String getToken(ASLSession aslSession) {
|
||||
String token = null;
|
||||
if (Constants.DEBUG_MODE) {
|
||||
List<String> userRoles = new ArrayList<>();
|
||||
userRoles.add(Constants.DEFAULT_ROLE);
|
||||
|
||||
token = null;// authorizationService().build().generate(
|
||||
// aslSession.getUsername(), userRoles);
|
||||
|
||||
token = Constants.DEFAULT_TOKEN;
|
||||
} else {
|
||||
token = aslSession.getSecurityToken();
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue