You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oozie.apache.org by as...@apache.org on 2019/08/30 12:24:03 UTC
[oozie] branch master updated: OOZIE-3539 amend Support http
proxy/basic authentication in the command line client (zsombor via
asalamon74)
This is an automated email from the ASF dual-hosted git repository.
asalamon74 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/oozie.git
The following commit(s) were added to refs/heads/master by this push:
new 9ef2ba4 OOZIE-3539 amend Support http proxy/basic authentication in the command line client (zsombor via asalamon74)
9ef2ba4 is described below
commit 9ef2ba4982727aa6ed1df920fe8119eced507914
Author: Andras Salamon <as...@apache.org>
AuthorDate: Fri Aug 30 14:23:24 2019 +0200
OOZIE-3539 amend Support http proxy/basic authentication in the command line client (zsombor via asalamon74)
---
.../apache/oozie/client/BasicAuthenticator.java | 57 ++++++++++++++++++++++
release-log.txt | 1 +
2 files changed, 58 insertions(+)
diff --git a/client/src/main/java/org/apache/oozie/client/BasicAuthenticator.java b/client/src/main/java/org/apache/oozie/client/BasicAuthenticator.java
new file mode 100644
index 0000000..1ec7535
--- /dev/null
+++ b/client/src/main/java/org/apache/oozie/client/BasicAuthenticator.java
@@ -0,0 +1,57 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.oozie.client;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.apache.hadoop.security.authentication.client.AuthenticatedURL.Token;
+import org.apache.hadoop.security.authentication.client.AuthenticationException;
+import org.apache.hadoop.security.authentication.client.Authenticator;
+import org.apache.hadoop.security.authentication.client.ConnectionConfigurator;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * The {@link BasicAuthenticator} is an empty implementation of the {@link Authenticator} interface,
+ * because for Basic authentication, no need for a preemptive http request to gather authentication tokens.
+ */
+public class BasicAuthenticator implements Authenticator {
+ private static final Logger LOG =
+ LoggerFactory.getLogger(BasicAuthenticator.class);
+
+ public BasicAuthenticator() {
+ }
+
+ /**
+ * Sets a {@link ConnectionConfigurator} instance to use for
+ * configuring connections.
+ *
+ * @param configurator the {@link ConnectionConfigurator} instance.
+ */
+ @Override
+ public void setConnectionConfigurator(ConnectionConfigurator configurator) {
+ }
+
+ @Override
+ public void authenticate(URL url, Token token) throws IOException, AuthenticationException {
+ LOG.debug("Pretend authentication for {} with token {}", url, token);
+ }
+
+}
diff --git a/release-log.txt b/release-log.txt
index c5b56e2..eb750f7 100644
--- a/release-log.txt
+++ b/release-log.txt
@@ -1,5 +1,6 @@
-- Oozie 5.2.0 release (trunk - unreleased)
+OOZIE-3539 amend Support http proxy/basic authentication in the command line client (zsombor via asalamon74)
OOZIE-3539 Support http proxy/basic authentication in the command line client (zsombor via asalamon74)
OOZIE-3468 [build] Use modernizer plugin (asalamon74 via kmarton)
OOZIE-3535 mapreduce.job.acl-view-job property in Oozie workflow.xml not taking full effect (kmarton via asalamon74)