You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gobblin.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/04/13 19:19:00 UTC

[jira] [Work logged] (GOBBLIN-1418) Add config to make it possible to specify a default Authenticator for a job

     [ https://issues.apache.org/jira/browse/GOBBLIN-1418?focusedWorklogId=581991&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-581991 ]

ASF GitHub Bot logged work on GOBBLIN-1418:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Apr/21 19:18
            Start Date: 13/Apr/21 19:18
    Worklog Time Spent: 10m 
      Work Description: jack-moseley commented on a change in pull request #3254:
URL: https://github.com/apache/gobblin/pull/3254#discussion_r612713112



##########
File path: gobblin-api/src/main/java/org/apache/gobblin/password/EncryptedPasswordAuthenticator.java
##########
@@ -0,0 +1,51 @@
+/*
+ * 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.gobblin.password;
+
+import java.net.Authenticator;
+import java.net.PasswordAuthentication;
+import java.util.Properties;
+
+import com.google.common.base.Preconditions;
+
+
+/**
+ * {@link Authenticator} that uses a username and password from the provided {@link Properties} to authenticate, and
+ * also decrypts the password using {@link PasswordManager}
+ */
+public class EncryptedPasswordAuthenticator extends Authenticator {

Review comment:
       Added a disabled test that checks an encrypted password, and an enabled test that just uses a password with no encryption.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 581991)
    Time Spent: 1h 10m  (was: 1h)

> Add config to make it possible to specify a default Authenticator for a job
> ---------------------------------------------------------------------------
>
>                 Key: GOBBLIN-1418
>                 URL: https://issues.apache.org/jira/browse/GOBBLIN-1418
>             Project: Apache Gobblin
>          Issue Type: Improvement
>            Reporter: Jack Moseley
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)