Fix twisted username and password fields in remote session

merge-requests/11/head
Charitha Goonetilleke 6 years ago
parent 917fcc8ea3
commit 896443620f

@ -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);

Loading…
Cancel
Save