No regex patterns are supported since CAS 3.4.12. Start the serviceId with 
“^” and write the regex pattern as you intend. Check with a regex app first 
to ensure your pattern produces the match you want first.



Sample:

https://github.com/Jasig/cas/blob/3.5.2.1/cas-server-webapp/src/main/webapp/WEB-INF/deployerConfigContext.xml#L189



From: Carlos M. Fernández [mailto:[email protected]]
Sent: Friday, November 28, 2014 3:04 PM
To: [email protected]
Subject: [cas-user] Problem with service registry URL matching



Good afternoon,



I've got a problem with the service registry in CAS 3.5.2.1 not matching a 
URL that in theory it should accept given how we've registered the service 
URL. We have the following URL in the registry:



http://acrux.sju.edu:7006/ssomanager/c/SSB*



(Yes, it's HTTP -- we'll change it to HTTPS soon).



The application takes a "pkg" parameter that can contain either the name of 
a procedure or an entire URL, however only the former works. For example,



This works:

http://acrux.sju.edu:7006/ssomanager/c/SSB?pkg=bwskfreg.P_AltPin



This doesn't work:

http://acrux.sju.edu:7006/ssomanager/c/SSB?pkg=https://hermes.sju.edu/pls/PRODSSB/bwpktais.P_SelectLeaveReportRoll



Unfortunately we have a bunch of vendor-provided code that auto-generates 
URLs of the latter form and we can't reasonably change it. Now, we know that 
registering the service URL as "http://acrux.sju.edu:7006/ssomanager/**"; 
works, however we want to distinguish between SSB and INB in the registry in 
order to provide different themes, which this shorter URL doesn't allow.



I'm not familiar with ant-style pattern matching and how it could apply 
here. I found some documentation that hints at regular expressions being 
supported here, but it seems to only apply to CAS 4.0+; I already tried 
without success.



How could I register this application to allow any query string after "SSB"?



Thanks in advance,

--

Carlos M. Fernández

Enterprise Systems Manager

Saint Joseph’s University

Philadelphia PA 19131

T: +1 610 660 1501




-- 
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

Reply via email to