This commit is contained in:
Lucio Lelii 2016-02-03 14:20:09 +00:00
parent a6b366e32a
commit ce089c4f5c
2 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@
<dependency>
<groupId>org.gcube.core</groupId>
<artifactId>common-encryption</artifactId>
<version>[1.0.2-SNAPSHOT,2.0.0-SNAPSHOT)</version>
<version>[2.0.0-SNAPSHOT,3.0.0-SNAPSHOT)</version>
</dependency>
<dependency>

View File

@ -19,7 +19,7 @@ public class CallTest {
@Test
public void call() throws Exception{
try{
System.out.println(authorizationService().get("f676d94d-af4c-4805-9225-98620f2e1aa0"));
System.out.println(authorizationService().get("82a84741-debe-4c90-a907-c429c8272071"));
}catch(ObjectNotFound onf){
onf.printStackTrace();
}
@ -29,7 +29,7 @@ public class CallTest {
public void requestToken() throws Exception {
//ScopeProvider.instance.set("/gcube/devsec");
String token = authorizationService().generateToken(new UserInfo("lucio.lelii", new ArrayList<String>()), "/gcube/devsec");
String token = authorizationService().generateToken(new UserInfo("luca.frosini", new ArrayList<String>()), "/gcube/devsec");
System.out.println("token is: "+token);
}