Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/filter/GGInAFilter.java @ 5952:42b8447fa7ef
Treat SAML URL as login URL in GGInAFilter.
author | Bernhard Herzog <bh@intevation.de> |
---|---|
date | Wed, 08 May 2013 17:56:14 +0200 |
parents | 1b939742629e |
children | ea9eef426962 |
comparison
equal
deleted
inserted
replaced
5951:36a5b6b9241e | 5952:42b8447fa7ef |
---|---|
44 private String redirecturl; | 44 private String redirecturl; |
45 private ServletContext sc; | 45 private ServletContext sc; |
46 | 46 |
47 private static final String LOGIN_JSP = "/login.jsp"; | 47 private static final String LOGIN_JSP = "/login.jsp"; |
48 private static final String LOGIN_SERVLET = "/flys/login"; | 48 private static final String LOGIN_SERVLET = "/flys/login"; |
49 private static final String SAML_SERVLET = "/flys/saml"; | |
49 private static final String FLYS_CSS = "/FLYS.css"; | 50 private static final String FLYS_CSS = "/FLYS.css"; |
50 | 51 |
51 | 52 |
52 /** | 53 /** |
53 * Initialize. | 54 * Initialize. |
106 | 107 |
107 // Allow access to login pages | 108 // Allow access to login pages |
108 String path = this.sc.getContextPath(); | 109 String path = this.sc.getContextPath(); |
109 if (requesturi.equals(path + LOGIN_JSP) | 110 if (requesturi.equals(path + LOGIN_JSP) |
110 || requesturi.equals(path + LOGIN_SERVLET) | 111 || requesturi.equals(path + LOGIN_SERVLET) |
112 || requesturi.equals(path + SAML_SERVLET) | |
111 || requesturi.equals(path + FLYS_CSS)) { | 113 || requesturi.equals(path + FLYS_CSS)) { |
112 logger.debug("Request for login " + requesturi); | 114 logger.debug("Request for login " + requesturi); |
113 chain.doFilter(req, resp); | 115 chain.doFilter(req, resp); |
114 return; | 116 return; |
115 } | 117 } |