Are dynamic service URLs allowed?

24 views
Skip to first unread message

Gayashan Bombuwala

unread,
Jul 29, 2019, 1:22:04 AM7/29/19
to CAS Community
HI all,

I want to know whether dynamic service URLs are allowed for a CAS client application.
For example assume that we configure the CAS client service URL as https://localhost:8080/cas-client/

Does/should it work and behave as the same (i.e. authorisation with CAS) when we access the client application through https://localhost:8080/cas-client/ ?

Also, what happens in a situation where two separate CAS clients having the same service URL (i.e. both applications have https://localhost:8080/cas-client/ as the service URL) ?

Thanks in advance,
Gayashan.

Ray Bon

unread,
Jul 29, 2019, 12:12:47 PM7/29/19
to cas-...@apereo.org
Gayashan,

The service id can be set as a regex (I think this is default). Thus, you can match anything; but you should make your service ids as specific as possible.
https://localhost:8080/application-name/.* will match anything at that application (I assume this is what you mean rather than cas client configured for the application).

If you have 'multiple applications' at the same URL, CAS server will treat them as a single application. This could make single logout tricky because CAS will send a logout to only one URL.

Typically, the cas client is included as part of your application, rather than a gateway to your application(s).

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.
Reply all
Reply to author
Forward
0 new messages