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 2021/09/17 22:25:18 UTC
[knox] branch master updated: KNOX-2653:- Update Atlas Service definition for knox logout/timeout i… (#497)
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 8cf5f7d KNOX-2653:- Update Atlas Service definition for knox logout/timeout i… (#497)
8cf5f7d is described below
commit 8cf5f7d595311eb36e32ba8f710771bd3cd7b511
Author: Sarath Subramanian <sa...@apache.org>
AuthorDate: Fri Sep 17 15:25:15 2021 -0700
KNOX-2653:- Update Atlas Service definition for knox logout/timeout i… (#497)
* KNOX-2653:- Update Atlas Service definition for knox logout/timeout in KNOX-2625
* Fix rewrite rule
Co-authored-by: Sandeep Moré <mo...@gmail.com>
---
.../src/main/resources/services/atlas/2.1.0/rewrite.xml | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/gateway-service-definitions/src/main/resources/services/atlas/2.1.0/rewrite.xml b/gateway-service-definitions/src/main/resources/services/atlas/2.1.0/rewrite.xml
index c825e1a..108ee68 100644
--- a/gateway-service-definitions/src/main/resources/services/atlas/2.1.0/rewrite.xml
+++ b/gateway-service-definitions/src/main/resources/services/atlas/2.1.0/rewrite.xml
@@ -32,9 +32,14 @@
<rewrite template="{$frontend[path]}/atlas/"/>
</rule>
- <rule dir="OUT" name="ATLAS/atlas/outbound/login/headers/location">
- <match pattern="*://*:*/login.jsp"/>
- <rewrite template="{$frontend[url]}/atlas/login.jsp"/>
+ <rule dir="OUT" name="ATLAS/atlas/outbound/login/headers/location" flow="OR">
+ <match pattern="*://*:*/login.jsp">
+ <rewrite template="https://{$frontend[addr]}/{$frontend[gateway.name]}/knoxsso/knoxauth/logout.jsp?originalUrl={$postfix[url,/atlas/]}" />
+ </match>
+
+ <match pattern="*://*:*/logout.html?{**}">
+ <rewrite template="https://{$frontend[addr]}/{$frontend[gateway.name]}/knoxsso/knoxauth/logout.jsp?{**}"/>
+ </match>
</rule>
<filter name="ATLAS/atlas/outbound/headers">