Internally renamed variable `token` to `tokens` since the JSON helds more tah one token

This commit is contained in:
Mauro Mugnaini 2021-06-24 11:03:46 +02:00
parent 3c201dd6f0
commit bee9d59f22
1 changed files with 3 additions and 3 deletions

View File

@ -22,9 +22,9 @@ public class RestHelperTest {
throws MalformedURLException, OpenIdConnectRESTHelperException, InterruptedException {
URL tokenURL = new URL(
"https://accounts.dev.d4science.org/auth/realms/d4science/protocol/openid-connect/token");
JWTToken token = OpenIdConnectRESTHelper.queryUMAToken(tokenURL, "robcomp",
"0fec31cb-23c3-44e2-9359-d6db6784b7d3",
"/gcube/devNext/NextNext", null);
JWTToken token = OpenIdConnectRESTHelper.queryUMAToken(tokenURL, "storage-manager-trigger",
"e2591a99-b694-4dbe-8f7b-9755a3db80af",
"/gcube", null);
System.out.println(token.getAccessTokenString());
}