You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gergely Farkas (Jira)" <ji...@apache.org> on 2023/10/03 11:30:00 UTC

[jira] [Created] (HIVE-27764) Authentication does not work behind Knox gateway because the "WWW-Authenticate: Negotiate" response header is missing

Gergely Farkas created HIVE-27764:
-------------------------------------

             Summary: Authentication does not work behind Knox gateway because the "WWW-Authenticate: Negotiate" response header is missing
                 Key: HIVE-27764
                 URL: https://issues.apache.org/jira/browse/HIVE-27764
             Project: Hive
          Issue Type: Bug
          Components: HiveServer2
            Reporter: Gergely Farkas
            Assignee: Gergely Farkas


HIVE-27661 refactored the authentication code a bit and also introduced a new bug: 
Before the modification, if the client was not authenticated and Kerberos authentication was enabled, a response header was included in the HTTP 401 response: _WWW-Authenticate: Negotiate_  
After the modification, this header is not included in the response, so [the reactive authentication flow implemented in the Knox gateway|https://github.com/apache/knox/blob/master/gateway-discovery-cm/src/main/java/org/apache/knox/gateway/topology/discovery/cm/auth/SpnegoAuthInterceptor.java#L105-L113] does not work anymore.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)