From 846f98737fd31938ef020c9c360486cc38bb9de6 Mon Sep 17 00:00:00 2001 From: Sonia Zorba <sonia.zorba@inaf.it> Date: Sat, 28 Nov 2020 16:29:13 +0100 Subject: [PATCH] CLI class update --- gms-client/gms-cli/src/main/java/it/inaf/ia2/gms/cli/CLI.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gms-client/gms-cli/src/main/java/it/inaf/ia2/gms/cli/CLI.java b/gms-client/gms-cli/src/main/java/it/inaf/ia2/gms/cli/CLI.java index 71b413b..87fa8be 100644 --- a/gms-client/gms-cli/src/main/java/it/inaf/ia2/gms/cli/CLI.java +++ b/gms-client/gms-cli/src/main/java/it/inaf/ia2/gms/cli/CLI.java @@ -3,6 +3,7 @@ package it.inaf.ia2.gms.cli; import it.inaf.ia2.client.ClientException; import it.inaf.ia2.gms.client.GmsClient; import it.inaf.ia2.gms.client.model.Permission; +import it.inaf.ia2.rap.client.ClientCredentialsRapClient; import it.inaf.ia2.rap.client.RapClient; import it.inaf.ia2.rap.data.AccessTokenResponse; import java.io.File; @@ -108,7 +109,7 @@ public class CLI { if (token != null) { client.setAccessToken(token); } else { - RapClient rapClient = new RapClient(rapBaseUrl) + RapClient rapClient = new ClientCredentialsRapClient(rapBaseUrl) .setClientId(clientId) .setClientSecret(clientSecret); AccessTokenResponse accessTokenResponse = rapClient.getAccessTokenFromClientCredentials(); -- GitLab