Commit 846f9873 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CLI class update

parent 937dd8f4
Pipeline #691 passed with stages
in 31 seconds
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment