git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/Common/authorization-common-client@122800 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a6b366e32a
commit
ce089c4f5c
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue