No, not the service parameter name. The actual service.
The client does this: serviceParameterName=Service-Url-Dynamic …which translates for you into: TARGET=your-url-with-params What I am suggesting is that you fix the service url to a constant value. If that is not a possibility, you likely need your own filter. From: Stephen More [mailto:[email protected]] Sent: Tuesday, January 12, 2016 7:12 AM To: Misagh Moayyed <[email protected]> Cc: [email protected] Subject: Re: [cas-user] [ Upgrade 3.5.3 -> 4.1.3 ] INVALID_SERVICE when parameters are added to url I tried: <filter> <filter-name>CAS Authentication Filter</filter-name> <filter-class>org.jasig.cas.client.authentication.Saml11AuthenticationFilter</filter-class> + <init-param> + <param-name>serviceParameterName</param-name> + <param-value>TARGET</param-value> + </init-param> </filter> but still not working. On Tue, Jan 12, 2016 at 8:48 AM, Misagh Moayyed <[email protected] <mailto:[email protected]> > wrote: Try setting a static service parameter in your configuration. For SAML it may be called TARGET. From: Stephen More [mailto:[email protected] <mailto:[email protected]> ] Sent: Tuesday, January 12, 2016 6:21 AM To: Misagh Moayyed <[email protected] <mailto:[email protected]> > Cc: [email protected] <mailto:[email protected]> Subject: Re: [cas-user] [ Upgrade 3.5.3 -> 4.1.3 ] INVALID_SERVICE when parameters are added to url Yes: <dependency> <groupId>org.jasig.cas.client</groupId> <artifactId>cas-client-core</artifactId> <version>3.4.1</version> </dependency> On Tue, Jan 12, 2016 at 8:18 AM, Misagh Moayyed <[email protected] <mailto:[email protected]> > wrote: Are you using the official java cas client? From: [email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]> ] On Behalf Of Stephen More Sent: Monday, January 11, 2016 11:27 AM To: [email protected] <mailto:[email protected]> Subject: [cas-user] [ Upgrade 3.5.3 -> 4.1.3 ] INVALID_SERVICE when parameters are added to url I currently have a JSF web app working with CAS server 3.5.3 with client 3.4.1 using saml for attribute release. With 3.5.3 I changed serviceTicketExpirationPolicy so that a ticket can be used multiple times. I am currently running into an issue trying to upgrade to 4.1.3: My JSF application is using deltaspike for 'window' scoped tabs - which adds a dswid to every request. As with 3.5.3 - a serviceTicket was trying to be used multiple times so I enabled it. I now get the following error: 2016-01-11 13:14:04,087 TRACE [org.jasig.cas.support.saml.web.view.Saml10FailureResponseView] - Rendering view with name 'casSamlServiceFailureView' with model {code=INVALID_SERVICE, description=Ticket 'AAFfTjJS5Hy7FM5fKtEnDoq62A6aZ+/umsDJIKfGJ8I5YfI95lU2m/UL' does not match supplied service. The original service was 'http://demo.example.com:8080/ams/user/list.jsf' and the supplied service was 'http://demo.example.com:8080/ams/user/list.jsf?dswid=3894'.} and static attributes {} How can I configure CAS to allow this ? -Thanks Stephen More -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]> . Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/. -- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
