You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/05/04 20:09:08 UTC

[ambari] branch trunk updated: AMBARI-23097. ADDENDUM - do not redirect after successful JWT authentication

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

oleewere pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new f5d9145  AMBARI-23097. ADDENDUM - do not redirect after successful JWT authentication
f5d9145 is described below

commit f5d914501e99d890bc02489e0515cdcc159744f9
Author: Oliver Szabo <ol...@gmail.com>
AuthorDate: Fri May 4 22:05:47 2018 +0200

    AMBARI-23097. ADDENDUM - do not redirect after successful JWT authentication
---
 .../org/apache/ambari/logsearch/auth/filter/AbstractJWTFilter.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/auth/filter/AbstractJWTFilter.java b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/auth/filter/AbstractJWTFilter.java
index dc65146..ce6eab1 100644
--- a/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/auth/filter/AbstractJWTFilter.java
+++ b/ambari-logsearch/ambari-logsearch-server/src/main/java/org/apache/ambari/logsearch/auth/filter/AbstractJWTFilter.java
@@ -119,9 +119,9 @@ public abstract class AbstractJWTFilter extends AbstractAuthenticationProcessing
     super.successfulAuthentication(request, response, chain, authResult);
     String ajaxRequestHeader = request.getHeader("X-Requested-With");
     if (isWebUserAgent(request.getHeader("User-Agent")) && !"XMLHttpRequest".equals(ajaxRequestHeader)) {
-      response.sendRedirect(createForwardableURL(request) + getOriginalQueryString(request));
+      chain.doFilter(request, response);
+      //response.sendRedirect(createForwardableURL(request) + getOriginalQueryString(request));
     }
-    // chain.doFilter(request, response); TODO: check
   }
 
   @Override

-- 
To stop receiving notification emails like this one, please contact
oleewere@apache.org.