Merge pull request #918 from charithag/master

Fix twisted username and password fields in remote session
revert-dabc3590
Hasunie 6 years ago committed by GitHub
commit f32480683a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -107,8 +107,8 @@ public class OAuthTokenValidatorStubFactory extends BasePoolableObjectFactory {
auth.setPreemptiveAuthentication(true); auth.setPreemptiveAuthentication(true);
String username = tokenValidationProperties.get(RemoteSessionConstants.USERNAME); String username = tokenValidationProperties.get(RemoteSessionConstants.USERNAME);
String password = tokenValidationProperties.get(RemoteSessionConstants.PASSWORD); String password = tokenValidationProperties.get(RemoteSessionConstants.PASSWORD);
auth.setPassword(username); auth.setUsername(username);
auth.setUsername(password); auth.setPassword(password);
Options options = client.getOptions(); Options options = client.getOptions();
options.setProperty(HTTPConstants.AUTHENTICATE, auth); options.setProperty(HTTPConstants.AUTHENTICATE, auth);
options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Constants.VALUE_TRUE); options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Constants.VALUE_TRUE);

@ -412,6 +412,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
return null; return null;
} }
@Override
public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) throws OperationManagementException {
return null;
}
@Override @Override
public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation) public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation)
throws OperationManagementException { throws OperationManagementException {
@ -471,11 +476,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
return 0; return 0;
} }
@Override
public List<Activity> getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) throws OperationManagementException {
return null;
}
@Override @Override
public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { public int getActivityCountUpdatedAfter(long l) throws OperationManagementException {
return 0; return 0;
} }
@Override
public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException {
return 0;
}
@Override @Override
public List<MonitoringOperation> getMonitoringOperationList(String s) { public List<MonitoringOperation> getMonitoringOperationList(String s) {
return null; return null;

@ -412,6 +412,11 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
return null; return null;
} }
@Override
public Operation getNextPendingOperation(DeviceIdentifier deviceIdentifier, long l) throws OperationManagementException {
return null;
}
@Override @Override
public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation) public void updateOperation(DeviceIdentifier deviceIdentifier, Operation operation)
throws OperationManagementException { throws OperationManagementException {
@ -471,11 +476,21 @@ public class DeviceManagementProviderServiceMock implements DeviceManagementProv
return 0; return 0;
} }
@Override
public List<Activity> getActivitiesUpdatedAfterByUser(long l, String s, int i, int i1) throws OperationManagementException {
return null;
}
@Override @Override
public int getActivityCountUpdatedAfter(long l) throws OperationManagementException { public int getActivityCountUpdatedAfter(long l) throws OperationManagementException {
return 0; return 0;
} }
@Override
public int getActivityCountUpdatedAfterByUser(long l, String s) throws OperationManagementException {
return 0;
}
@Override @Override
public List<MonitoringOperation> getMonitoringOperationList(String s) { public List<MonitoringOperation> getMonitoringOperationList(String s) {
return null; return null;

@ -1230,7 +1230,7 @@
<javax.ws.rs.version>1.1.1</javax.ws.rs.version> <javax.ws.rs.version>1.1.1</javax.ws.rs.version>
<!-- Carbon Device Management --> <!-- Carbon Device Management -->
<carbon.devicemgt.version>3.1.34</carbon.devicemgt.version> <carbon.devicemgt.version>3.1.47</carbon.devicemgt.version>
<carbon.devicemgt.version.range>[3.1.0, 4.0.0)</carbon.devicemgt.version.range> <carbon.devicemgt.version.range>[3.1.0, 4.0.0)</carbon.devicemgt.version.range>
<!-- Carbon App Management --> <!-- Carbon App Management -->

Loading…
Cancel
Save