Two of the changes that we've made might be useful to others in the CAS 
community, so I'm putting them up on GitHub for review and consideration.

1) An enhanced ServiceThemeResolver that can select themes by host header 
(while preserving existing theme-selection mechanisms).  Also makes the code a 
little easier to follow (though it maybe could be improved further).
  In our case, we have multiple domains for our CAS server. (I'm talking about 
the server, not the clients.)  Each domain uses a different theme.

2) Additional algorithms and greater flexibility for registered service URL 
matching.
  Instead of ^(regex), we use various prefixes:
  regex:(regex)
  domain:domain1.com
  domainlist:domain1.com,domain2.org,www.domain3.net
Also, because it doesn't use inheritance and a hibernate discriminator column, 
it's easy to change from one type to another without having to recreate the 
registered service.

Note that these customizations were developed on 3.4.10 and have not yet been 
tested in their current state (merged with the 3.5.x codebase), but they should 
work properly, or at least be really close to working.  Also, the code for both 
can be improved further, but are very workable in their current state.

Here's the code on GitHub:
https://github.com/Cru-Tech/cas/commit/84f97b8f8b96f271b12f35877e86049352afe3dc

Since these might be worthwhile to other CAS deployers, I'd like to propose 
them (or something like them) for possible inclusion in future versions CAS.

-Nathan



-- 
You are currently subscribed to cas-dev@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to