|
46 | 46 | import it.eng.spagobi.commons.bo.SessionUserProfileBuilder; |
47 | 47 | import it.eng.spagobi.commons.bo.UserProfile; |
48 | 48 | import it.eng.spagobi.commons.bo.UserProfileUtility; |
49 | | -import it.eng.spagobi.commons.services.LoginActionByToken; |
50 | | -import it.eng.spagobi.commons.services.LoginActionWeb; |
51 | 49 | import it.eng.spagobi.commons.services.LoginModule; |
52 | 50 | import it.eng.spagobi.commons.utilities.ChannelUtilities; |
53 | 51 | import it.eng.spagobi.commons.utilities.GeneralUtilities; |
@@ -188,8 +186,6 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha |
188 | 186 | } else { |
189 | 187 | // @formatter:off |
190 | 188 | if (!requestIsForHomePage(httpRequest) && |
191 | | - !requestIsForLoginByToken(httpRequest) && |
192 | | - !requestIsForLoginByJavaScriptSDK(httpRequest) && |
193 | 189 | !requestIsForSessionExpired(httpRequest)) |
194 | 190 | // @formatter:on |
195 | 191 | { |
@@ -223,18 +219,6 @@ private boolean requestIsForHomePage(HttpServletRequest request) { |
223 | 219 | && request.getParameter(Constants.PAGE).equalsIgnoreCase(LoginModule.PAGE_NAME); |
224 | 220 | } |
225 | 221 |
|
226 | | - private boolean requestIsForLoginByToken(HttpServletRequest request) { |
227 | | - // returns true in case request has ACTION_NAME=LOGIN_ACTION_BY_TOKEN parameter, false otherwise |
228 | | - return request.getParameter(Constants.ACTION_NAME) != null |
229 | | - && request.getParameter(Constants.ACTION_NAME).equalsIgnoreCase(LoginActionByToken.SERVICE_NAME); |
230 | | - } |
231 | | - |
232 | | - private boolean requestIsForLoginByJavaScriptSDK(HttpServletRequest request) { |
233 | | - // returns true in case request has ACTION_NAME=LOGIN_ACTION_WEB parameter, false otherwise |
234 | | - return request.getParameter(Constants.ACTION_NAME) != null |
235 | | - && request.getParameter(Constants.ACTION_NAME).equalsIgnoreCase(LoginActionWeb.SERVICE_NAME); |
236 | | - } |
237 | | - |
238 | 222 | private boolean requestIsForSessionExpired(HttpServletRequest request) { |
239 | 223 | // returns true in case request contains the sessionExpiredURL read from Knowage configuration |
240 | 224 | return request.getRequestURI().contains(GeneralUtilities.getSessionExpiredURL()); |
|
0 commit comments