Added quick test class
This commit is contained in:
parent
e359bfa00b
commit
003222ef6c
|
@ -6,8 +6,8 @@ public class RestHelperTest {
|
|||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
System.out.println(OpenIdConnectRESTHelper.queryClientToken(
|
||||
"vre-folder-manager", "4999c6d6-86fd-4f86-a3f8-30c26a95f551",
|
||||
"https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token").toString());
|
||||
String tokenURL = "https://nubis2.int.d4science.net/auth/realms/d4science/protocol/openid-connect/token";
|
||||
System.out.println(OpenIdConnectRESTHelper.queryUMAToken(tokenURL, OpenIdConnectRESTHelper.queryClientToken(
|
||||
"vre-folder-manager", "4999c6d6-86fd-4f86-a3f8-30c26a95f551", tokenURL).getAsBearer(), "workspace", null));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue