[ 
https://issues.apache.org/jira/browse/CALCITE-1539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966004#comment-15966004
 ] 

ASF GitHub Bot commented on CALCITE-1539:
-----------------------------------------

Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/calcite-avatica/pull/6#discussion_r111173713
  
    --- Diff: 
server/src/test/java/org/apache/calcite/avatica/server/RemoteUserExtractHttpServerTest.java
 ---
    @@ -0,0 +1,175 @@
    +/*
    + * 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.calcite.avatica.server;
    +
    +import org.apache.calcite.avatica.ConnectionSpec;
    +import org.apache.calcite.avatica.jdbc.JdbcMeta;
    +import org.apache.calcite.avatica.remote.AuthenticationType;
    +import org.apache.calcite.avatica.remote.Driver;
    +import org.apache.calcite.avatica.remote.LocalService;
    +
    +import org.junit.AfterClass;
    +import org.junit.BeforeClass;
    +import org.junit.Test;
    +import org.slf4j.Logger;
    +import org.slf4j.LoggerFactory;
    +
    +import java.util.Properties;
    +import java.util.concurrent.Callable;
    +
    +import javax.servlet.http.HttpServletRequest;
    +
    +import static org.hamcrest.core.StringContains.containsString;
    +import static org.junit.Assert.assertNotNull;
    +import static org.junit.Assert.assertThat;
    +import static org.junit.Assert.fail;
    +
    +/**
    + * Test class for HTTP Basic authentication.
    + */
    +public class RemoteUserExtractHttpServerTest extends HttpAuthBase {
    +  private static final Logger LOG = 
LoggerFactory.getLogger(RemoteUserExtractHttpServerTest.class);
    +
    +  private static final ConnectionSpec CONNECTION_SPEC = 
ConnectionSpec.HSQLDB;
    +  private static HttpServer server;
    +  private static String url1;
    +  private static String url2;
    +
    +  @BeforeClass public static void startServer() throws Exception {
    +
    +    final String userPropertiesFile = BasicAuthHttpServerTest.class
    +            .getResource("/auth-users.properties").getFile();
    --- End diff --
    
    See CALCITE-1752 -- this will fail if the path to this file contains any 
characters that would be url encoded.


> Enable proxy access to Avatica server for third party on behalf of end users
> ----------------------------------------------------------------------------
>
>                 Key: CALCITE-1539
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1539
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>            Reporter: Jerry He
>            Assignee: Shi Wang
>         Attachments: 
> 0001-CALCITE-1539-Enable-proxy-access-to-Avatica-server-f.patch, 
> 0001-CALCITE-1539.patch, 0001-CALCITE-1539_without_testcase.patch
>
>
> We want to enable proxy access to Avatica server from an end user, but the 
> end user comes in via a third party impersonation.  For example, Knox and Hue.
> The Knox server user conveys the end user to Avatica.
> Similar things have been done for HBase Rest Sever HBASE-9866 and Hive Server 
> HIVE-5155



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to