Merge pull request #917 from charithag/master

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

@ -107,9 +107,9 @@ public class OAuthTokenValidaterStubFactory extends BasePoolableObjectFactory {
auth.setPreemptiveAuthentication(true); auth.setPreemptiveAuthentication(true);
String username = tokenValidationProperties.get(WebsocketConstants.USERNAME); String username = tokenValidationProperties.get(WebsocketConstants.USERNAME);
String password = tokenValidationProperties.get(WebsocketConstants.PASSWORD); String password = tokenValidationProperties.get(WebsocketConstants.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);
client.setOptions(options); client.setOptions(options);

Loading…
Cancel
Save