mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Fix twisted username and password fields
This commit is contained in:
parent
688b4fb6b1
commit
ddd6b7ed8e
@ -107,8 +107,8 @@ 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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user