knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [knox] branch master updated: KNOX-2667: Update Ranger Service definition for knox logout/timeout in KNOX-2625 (#499)
Date Mon, 20 Sep 2021 14:09:25 GMT
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 <87353305+spolavarpau1@users.noreply.github.com>
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>

Mime
View raw message