You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2019/09/14 01:29:53 UTC

[knox] branch master updated: KNOX-2012 Fix an issue where multiple sessions are created during Ranger login (#146)

This is an automated email from the ASF dual-hosted git repository.

more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new e89aaaf  KNOX-2012 Fix an issue where multiple sessions are created during Ranger login (#146)
e89aaaf is described below

commit e89aaaf9f86d5b4b32a1ee46dd77b57229b3fad5
Author: Sandeep Moré <mo...@apache.org>
AuthorDate: Fri Sep 13 21:29:48 2019 -0400

    KNOX-2012 Fix an issue where multiple sessions are created during Ranger login (#146)
---
 .../src/main/resources/services/ranger/1.0.0/service.xml           | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gateway-service-definitions/src/main/resources/services/ranger/1.0.0/service.xml b/gateway-service-definitions/src/main/resources/services/ranger/1.0.0/service.xml
index fef619c..eddb5b3 100644
--- a/gateway-service-definitions/src/main/resources/services/ranger/1.0.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/ranger/1.0.0/service.xml
@@ -22,6 +22,11 @@
         <route path="/ranger/service/assets/**"/>
         <route path="/ranger"/>
     </routes>
-    <dispatch classname="org.apache.knox.gateway.dispatch.DefaultDispatch"/>
+    <dispatch classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch" ha-classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch">
+        <param>
+            <name>responseExcludeHeaders</name>
+            <value>WWW-AUTHENTICATE</value>
+        </param>
+    </dispatch>
 </service>