Added quick test class

This commit is contained in:
Mauro Mugnaini 2020-06-04 16:47:23 +02:00
parent e359bfa00b
commit 003222ef6c
1 changed files with 3 additions and 3 deletions

View File

@ -6,8 +6,8 @@ public class RestHelperTest {
} }
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
System.out.println(OpenIdConnectRESTHelper.queryClientToken( String tokenURL = "https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token";
"vre-folder-manager", "4999c6d6-86fd-4f86-a3f8-30c26a95f551", System.out.println(OpenIdConnectRESTHelper.queryUMAToken(tokenURL, OpenIdConnectRESTHelper.queryClientToken(
"https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token").toString()); "vre-folder-manager", "4999c6d6-86fd-4f86-a3f8-30c26a95f551", tokenURL).getAsBearer(), "workspace", null));
} }
} }