hsnusonic commented on a change in pull request #3006:
URL: https://github.com/apache/hive/pull/3006#discussion_r804909244



##########
File path: 
service/src/java/org/apache/hive/service/cli/thrift/ThriftHttpServlet.java
##########
@@ -203,29 +213,32 @@ protected void doPost(HttpServletRequest request, 
HttpServletResponse response)
           // HTTP request header.
           clientUserName = doPasswdAuth(request, 
HiveAuthConstants.AuthTypes.NOSASL.getAuthName());
         } else {
+          if (isJWTAuthMode(authType)) {
+            clientUserName = validateJWT(request, response);
+          }
           // For a kerberos setup
-          if (isKerberosAuthMode(authType)) {
+          if (clientUserName == null && isKerberosAuthMode(authType)) {

Review comment:
       We'd like to support multiple auth type in the same time. I agree it is 
not an ideal structure right now. Do you have any suggestions?




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to