You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by peter-toth <gi...@git.apache.org> on 2018/05/08 14:02:38 UTC

[GitHub] nifi pull request #2630: NIFI-5041 Adds SPNEGO authentication to LivySession...

Github user peter-toth commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2630#discussion_r186738068
  
    --- Diff: nifi-nar-bundles/nifi-extension-utils/nifi-hadoop-utils/src/main/java/org/apache/nifi/hadoop/KerberosConfiguration.java ---
    @@ -0,0 +1,52 @@
    +/*
    + * 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.nifi.hadoop;
    +
    +import org.apache.hadoop.security.authentication.util.KerberosUtil;
    +
    +import javax.security.auth.login.AppConfigurationEntry;
    +import java.util.HashMap;
    +import java.util.Map;
    +
    +/**
    + * Modified Kerberos configuration class from {@link org.apache.hadoop.security.authentication.client.KerberosAuthenticator.KerberosConfiguration}
    + * that requires authentication from a keytab.
    + */
    +public class KerberosConfiguration extends javax.security.auth.login.Configuration {
    --- End diff --
    
    @mattyb149, @joewitt can you please help me and review this PR and let me know if I need to change anything.


---