Service URL appending /

36 views
Skip to first unread message

Tom Barber

unread,
Sep 27, 2016, 4:35:51 AM9/27/16
to cas-...@apereo.org
Hi folks

I can't find a cause or solution to this anywhere so I figured I'd ask:
I have CAS working fine with HTTPD mod_cas but when I try and hook it up to a plain java webapp I get this:
Ticket 'ST-1-ABI6h1jCH7SXA2sbjU6g-my-domain.com' does not match supplied service. The original service was 'https://mydomain.com/service' and the supplied service was 'https://mydomain.com/service/'.

As you can see its appending a / to the service URL and I have no clue why.

Any pointers?

Thanks

Tom

Alex Olson

unread,
Sep 27, 2016, 4:51:21 AM9/27/16
to Tom Barber, cas-...@apereo.org
What cas version are you running?

--
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 cas-user+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CABML50fetroeiqb_Xfw2PzVhGC-cntk_hAuD18KbTXtHgsh8Sg%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.
--
-- Alex

Tom Barber

unread,
Sep 27, 2016, 4:53:54 AM9/27/16
to Alex Olson, cas-...@apereo.org
Hey Alex

4.2.4

The webapp proxies through Apache HTTPD to Tomcat but I'm not seeing anything obvious in the configs in Tomcat, HTTPD or CAS to see why the / is appended. Similarly, if I attempt a login with http://mydomain.com/service/ it then throws a mismatch but with http://mydomain.com/service//

Tom

On Tue, Sep 27, 2016 at 9:51 AM, Alex Olson <alexkel...@gmail.com> wrote:
What cas version are you running?

On Tue, Sep 27, 2016 at 10:35 AM Tom Barber <tom.b...@meteorite.bi> wrote:
Hi folks

I can't find a cause or solution to this anywhere so I figured I'd ask:
I have CAS working fine with HTTPD mod_cas but when I try and hook it up to a plain java webapp I get this:
Ticket 'ST-1-ABI6h1jCH7SXA2sbjU6g-my-domain.com' does not match supplied service. The original service was 'https://mydomain.com/service' and the supplied service was 'https://mydomain.com/service/'.

As you can see its appending a / to the service URL and I have no clue why.

Any pointers?

Thanks

Tom

--
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 cas-user+unsubscribe@apereo.org.
--
-- Alex

Tom Barber

unread,
Sep 27, 2016, 4:55:57 AM9/27/16
to Alex Olson, cas-...@apereo.org
Ah.... looks like I figured it out somehow:

My HTTPD proxypass directive had /myservice/ in it, remove the last / and the error goes away. I didn't think it was CAS related but that had me stumped for a day... amazing how often just writing the question on a mailing list magical resolves the issue ;)

Tom

On Tue, Sep 27, 2016 at 9:53 AM, Tom Barber <tom.b...@meteorite.bi> wrote:
Hey Alex

4.2.4

The webapp proxies through Apache HTTPD to Tomcat but I'm not seeing anything obvious in the configs in Tomcat, HTTPD or CAS to see why the / is appended. Similarly, if I attempt a login with http://mydomain.com/service/ it then throws a mismatch but with http://mydomain.com/service//

Tom
On Tue, Sep 27, 2016 at 9:51 AM, Alex Olson <alexkel...@gmail.com> wrote:
What cas version are you running?

On Tue, Sep 27, 2016 at 10:35 AM Tom Barber <tom.b...@meteorite.bi> wrote:
Hi folks

I can't find a cause or solution to this anywhere so I figured I'd ask:
I have CAS working fine with HTTPD mod_cas but when I try and hook it up to a plain java webapp I get this:
Ticket 'ST-1-ABI6h1jCH7SXA2sbjU6g-my-domain.com' does not match supplied service. The original service was 'https://mydomain.com/service' and the supplied service was 'https://mydomain.com/service/'.

As you can see its appending a / to the service URL and I have no clue why.

Any pointers?

Thanks

Tom

--
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 cas-user+u...@apereo.org.
--
-- Alex


Alex Olson

unread,
Sep 27, 2016, 4:56:18 AM9/27/16
to Tom Barber, cas-...@apereo.org
I'm not sure off the top of my head why that would be happening, but as a temporary fix you could use wildcards in your service registry such that the service matches with or without a trailing slash.

On Tue, Sep 27, 2016 at 10:53 AM Tom Barber <tom.b...@meteorite.bi> wrote:
Hey Alex

4.2.4

The webapp proxies through Apache HTTPD to Tomcat but I'm not seeing anything obvious in the configs in Tomcat, HTTPD or CAS to see why the / is appended. Similarly, if I attempt a login with http://mydomain.com/service/ it then throws a mismatch but with http://mydomain.com/service//

Tom
On Tue, Sep 27, 2016 at 9:51 AM, Alex Olson <alexkel...@gmail.com> wrote:
What cas version are you running?

On Tue, Sep 27, 2016 at 10:35 AM Tom Barber <tom.b...@meteorite.bi> wrote:
Hi folks

I can't find a cause or solution to this anywhere so I figured I'd ask:
I have CAS working fine with HTTPD mod_cas but when I try and hook it up to a plain java webapp I get this:
Ticket 'ST-1-ABI6h1jCH7SXA2sbjU6g-my-domain.com' does not match supplied service. The original service was 'https://mydomain.com/service' and the supplied service was 'https://mydomain.com/service/'.

As you can see its appending a / to the service URL and I have no clue why.

Any pointers?

Thanks

Tom

--
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 cas-user+u...@apereo.org.
--
-- Alex

--
-- Alex
Reply all
Reply to author
Forward
0 new messages