relaxed cas ticket for generic uri

35 views
Skip to first unread message

George Proost

unread,
Sep 16, 2019, 5:06:56 AM9/16/19
to CAS Community
Hi Cas Group,

A service ticket for a url that is also valid for sub urls, including paths and query parameters etc..
Use case restful web services, ticket for base url path and valid for all sub-paths.

How does one accomplish that?

Thanks in advance

George


Ray Bon

unread,
Sep 16, 2019, 11:23:12 AM9/16/19
to cas-...@apereo.org
George,

The service identifier [serviceId] can be a regex, see https://apereo.github.io/cas/6.0.x/services/Configuring-Service-Access-Strategy.html for examples.

Ray
-- 
Ray Bon
Programmer Analyst
Development Services, University Systems

I respectfully acknowledge that my place of work is located within the ancestral, traditional and unceded territory of the Songhees, Esquimalt and WSÁNEĆ Nations.

George Proost

unread,
Sep 18, 2019, 3:00:20 AM9/18/19
to CAS Community
Hi Ray,

I sort of understand that part thanks.

Issue is that I have a url "mysite.example.com/app1"
for this I get a ticket, this is ONLY valid for the discrete url for which the ticket has been issued.
I will need a NEW ticket for a subsequent post with example a passed parameter eg: "mysite.example.com/app1&lang=fr"
This is the situation I need to address, I need to have a valid ticket for all users of the base url "mysite.example.com/app1"


Regards,

George

Op maandag 16 september 2019 17:23:12 UTC+2 schreef rbon:

Ray Bon

unread,
Sep 18, 2019, 12:22:46 PM9/18/19
to cas-...@apereo.org
George,

A service id of "mysite\.example\.com/app1.*" will work with and without your user sending parameters.

Ray

P.S. I escaped the '.' so some interloper can not ride your CAS server with mysiteaexample.com/app1
Reply all
Reply to author
Forward
0 new messages