only set OAuth client secret or password if set
This commit is contained in:
parent
8d634670e1
commit
9b4287b811
@ -117,7 +117,8 @@ public abstract class ApsAddressibleGoal extends DisablableGoal {
|
||||
|
||||
this.getLog().debug("OAuth Client ID: " + clientCreds.getUsername());
|
||||
config.setOAuthClientId(clientCreds.getUsername());
|
||||
config.setOAuthClientSecret(clientCreds.getPassword());
|
||||
if (clientCreds.getPassword() != null && clientCreds.getPassword().length() > 0)
|
||||
config.setOAuthClientSecret(clientCreds.getPassword());
|
||||
}
|
||||
|
||||
if (oauthCreds != null) {
|
||||
@ -126,7 +127,8 @@ public abstract class ApsAddressibleGoal extends DisablableGoal {
|
||||
|
||||
this.getLog().debug("OAuth Username: " + oauthCreds.getUsername());
|
||||
config.setOAuthUsername(oauthCreds.getUsername());
|
||||
config.setOAuthPassword(oauthCreds.getPassword());
|
||||
if (oauthCreds.getPassword() != null && oauthCreds.getPassword().length() > 0)
|
||||
config.setOAuthPassword(oauthCreds.getPassword());
|
||||
}
|
||||
|
||||
config.setOAuthTokenUrl(this.oauthTokenUrl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user