Add vpp token field

device-info-config
osh 1 year ago
parent b576f3d9bb
commit dd7910268e

@ -26,6 +26,7 @@ public class DepConfig {
private String accessToken;
private String accessSecret;
private String accessTokenExpiry;
private String vppToken;
public String getAgentPackageName() {
return agentPackageName;
@ -59,6 +60,14 @@ public class DepConfig {
this.accessToken = accessToken;
}
public String getVppToken() {
return vppToken;
}
public void setVppToken(String vppToken) {
this.vppToken = vppToken;
}
public String getAccessSecret() {
return accessSecret;
}

@ -174,7 +174,7 @@ public class GenericVppApplicationDAOImpl extends AbstractDAOImpl implements Vp
+ "CREATED_TIME, "
+ "LAST_UPDATED_TIME, "
+ "MANAGED_ID, "
+ "TEMP_PASSWORD "
+ "TEMP_PASSWORD, "
+ "DM_USERNAME "
+ "FROM AP_VPP_USER "
+ "WHERE DM_USERNAME = ? AND TENANT_ID = ?";

@ -591,7 +591,7 @@ public class VppApplicationManagerImpl implements VPPApplicationManager {
Gson g = new Gson();
DepConfig depConfigs = g.fromJson(metadata.getMetaValue(), DepConfig.class);
token = depConfigs.getAccessToken();
token = depConfigs.getVppToken();
return token;
}
}catch (MetadataManagementException e) {

Loading…
Cancel
Save