Ah never mind. I realized the pull wasn't merged. I'll update it myself.
From: Misagh Moayyed [mailto:[email protected]] Sent: Friday, June 5, 2015 1:55 PM To: [email protected] Subject: RE: [cas-user] SAML preserving QueryString Cool. Can you do a PR? From: Manfredo Hopp [mailto:[email protected]] Sent: Friday, June 5, 2015 12:48 PM To: [email protected] <mailto:[email protected]> Subject: Re: [cas-user] SAML preserving QueryString - if (this.queryParams == null) { + if (this.queryParams == null || this.queryParams.size() == 0) { 2015-06-04 13:08 GMT-03:00 Manfredo Hopp <[email protected] <mailto:[email protected]> >: [#|2015-06-04T13:07:50.778-0300|WARNING|glassfish3.1.2|javax.enterprise.sy stem.container.web.com.sun.enterprise.web|_ThreadID=68;_ThreadName=Thread- 2;|StandardWrapperValve[jsp]: PWC1406: Servlet.service() for servlet jsp threw exception java.lang.UnsupportedOperationException at java.util.AbstractList.add(AbstractList.java:148) at java.util.AbstractList.add(AbstractList.java:108) at org.jasig.cas.client.util.URIBuilder.addParameter(URIBuilder.java:402) at org.jasig.cas.client.util.CommonUtils.constructServiceUrl(CommonUtils.java :310) at org.jasig.cas.client.util.AbstractCasFilter.constructServiceUrl(AbstractCa sFilter.java:104) at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(Authenti cationFilter.java:159) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:256) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:217) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:279) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:6 55) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595 ) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 61) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:3 31) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231 ) at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(C ontainerMapper.java:317) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMappe r.java:195) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:850) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:747) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1036) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.j ava:231) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocol Chain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104 ) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.j ava:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java: 59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.j ava:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java :513) at java.lang.Thread.run(Thread.java:74 2015-06-03 15:39 GMT-03:00 Misagh Moayyed <[email protected] <mailto:[email protected]> >: Not sure it can. I recently ran into something similar. This might help once it goes in: https://github.com/Jasig/java-cas-client/pull/105 You are welcome to try it out and further validate it. - Misagh On Jun 3, 2015, at 2:08 PM, Manfredo Hopp <[email protected] <mailto:[email protected]> > wrote: Hi, we are trying to implement Cas v4 to authenticate users through a Jersey client. In this configuration there is a central autenticatior which also manages service tickets through jersey, following a redirection to the url of application. This redirection passes ServiceTicket through SAML query paramter against an application with following filters active: <filter-name>CAS Validation Filter</filter-name> <filter-class>org.jasig.cas.client.validation.Saml11TicketValidationFilter </filter-class> ... <init-param> <param-name>redirectAfterValidation</param-name> <param-value>true</param-value> </init-param> ... <filter> <filter-name>CAS HttpServletRequest Wrapper Filter</filter-name> <filter-class>org.jasig.cas.client.util.HttpServletRequestWrapperFilter</f ilter-class> </filter> <filter> <filter-name>CAS Assertion Thread Local Filter</filter-name> <filter-class>org.jasig.cas.client.util.AssertionThreadLocalFilter</filter -class> </filter> <filter-name>CAS Authentication Filter</filter-name> Cas accepts redirection as valid BUT strips off QueryString. Question: is there a means in where QueryString can be preserved at least for the nom SAML parameters? Thank you Manfred -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] <mailto:[email protected]> as: [email protected] <mailto:[email protected]> To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
