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 737074c  KNOX-2667: Update Ranger Service definition for knox 
logout/timeout in KNOX-2625 (#499)
737074c is described below

commit 737074cd057a7c531683d40e87d573f30fd03fe1
Author: spolavarpau1 <[email protected]>
AuthorDate: Mon Sep 20 07:09:20 2021 -0700

    KNOX-2667: Update Ranger Service definition for knox logout/timeout in 
KNOX-2625 (#499)
---
 .../src/main/resources/services/rangerui/1.0.0/rewrite.xml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 
a/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/rewrite.xml
 
b/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/rewrite.xml
index eb4196a..137dd2c 100644
--- 
a/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/rewrite.xml
+++ 
b/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/rewrite.xml
@@ -51,6 +51,11 @@
         <rewrite template="{$frontend[url]}/ranger/login.jsp"/>
     </rule>
 
+    <rule dir="OUT" name="RANGERUI/rangerui/outbound/timeout/headers/location">
+        <match pattern="*://*:*/*/*/ranger/logout?originalUrl={**}"/>
+        <rewrite 
template="https://{$frontend[addr]}/{$frontend[gateway.name]}/knoxsso/knoxauth/logout.jsp?originalUrl={**}"/>
+    </rule>
+
     <filter name="RANGERUI/rangerui/outbound/links">
         <content type="application/javascript">
             <apply path="j_spring_security_check" 
rule="RANGERUI/rangerui/outbound/extrapath"/>
@@ -66,4 +71,4 @@
         </content>
     </filter>
 
-</rules>
\ No newline at end of file
+</rules>

Reply via email to