fix token access

This commit is contained in:
Grahame Grieve 2024-05-18 03:38:52 -05:00
parent 4911f4fef8
commit bdb6022e2d
1 changed files with 2 additions and 1 deletions

View File

@ -70,9 +70,10 @@ public class ManagedWebAccessBuilder {
if (userAgent != null) {
client.addHeader("User-Agent", userAgent);
}
if (username != null) {
if (username != null || token != null) {
client.setUsername(username);
client.setPassword(password);
client.setToken(token);
client.setAuthenticationMode(authenticationMode);
}
return client;