Commit 9b4287b8 authored by Brian Long's avatar Brian Long
Browse files

only set OAuth client secret or password if set

parent 8d634670
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ public abstract class ApsAddressibleGoal extends DisablableGoal {
                    
					this.getLog().debug("OAuth Client ID: " + clientCreds.getUsername());
					config.setOAuthClientId(clientCreds.getUsername());
					if (clientCreds.getPassword() != null && clientCreds.getPassword().length() > 0)
					    config.setOAuthClientSecret(clientCreds.getPassword());
				}
				
@@ -126,6 +127,7 @@ public abstract class ApsAddressibleGoal extends DisablableGoal {
                    
					this.getLog().debug("OAuth Username: " + oauthCreds.getUsername());
					config.setOAuthUsername(oauthCreds.getUsername());
                    if (oauthCreds.getPassword() != null && oauthCreds.getPassword().length() > 0)
                        config.setOAuthPassword(oauthCreds.getPassword());
				}