File tree Expand file tree Collapse file tree
conductor-client/src/main/java/io/orkes/conductor/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131import io .orkes .conductor .client .http .OrkesAuthentication ;
3232import io .orkes .conductor .client .http .Pair ;
3333
34+ import lombok .extern .slf4j .Slf4j ;
3435import okhttp3 .Call ;
3536import okhttp3 .Callback ;
3637import okhttp3 .Request ;
4142 * migration for
4243 * users of orkes-conductor-client v2.
4344 */
45+ @ Slf4j
4446public final class ApiClient extends ConductorClient {
4547
4648 private final OrkesAuthentication authentication ;
@@ -185,7 +187,8 @@ public static class ApiClientBuilder extends Builder<ApiClientBuilder> {
185187
186188 public ApiClientBuilder credentials (String key , String secret ) {
187189 if (StringUtils .isBlank (key ) || StringUtils .isBlank (secret )) {
188- throw new IllegalArgumentException ("Key and secret must not be blank (null or empty)" );
190+ log .warn ("key or secret supplied is blank - ignoring. Client will not use authentication" );
191+ return this ;
189192 }
190193
191194 this .authentication = new OrkesAuthentication (key , secret );
You can’t perform that action at this time.
0 commit comments