You'll need an alternate service registry implementation, that looks elsewhere for service definitions, perhaps inside an external file and you'd then periodically watch the file for changes and reload the internal list. Something like this:
https://github.com/Unicon/cas-addons/wiki/Configuring-JSON-Service-Registr y From: Sashika [mailto:[email protected]] Sent: Wednesday, March 26, 2014 8:47 PM To: [email protected] Subject: Re: [cas-user] (OAuth2.0) InMemoryServiceRegistryDaoImpl CAS 4.0.0.0-RC2 On Wed, Mar 26, 2014 at 10:21 PM, Misagh Moayyed <[email protected]> wrote: What cas version are you on now? From: Sashika [mailto:[email protected]] Sent: Tuesday, March 25, 2014 11:19 PM To: [email protected] Subject: Re: [cas-user] (OAuth2.0) InMemoryServiceRegistryDaoImpl Ok, can you point me to some direction where I could do it myself as waiting for the feature is not an option for the moment. On Wed, Mar 26, 2014 at 11:29 AM, Misagh Moayyed <[email protected]> wrote: Not at this point. This is a planned feature though. From: Sashika [mailto:[email protected]] Sent: Tuesday, March 25, 2014 8:32 PM To: [email protected] Subject: [cas-user] (OAuth2.0) InMemoryServiceRegistryDaoImpl Hi, My Cas server is configured with OAuth server support and the clients will send the auth2.0 autherization request to the CAS server. Currently I have registered all my auth services in the deployerConfigContext.xml as "org.jasig.cas.support.oauth.services.OAuthRegisteredService". This requires to edit the deployerConfigContext and restart the server every time I need to add a new oauth service. Is there any other option where I can add more oauth services at run time? I see the CAS server is reloading all services every two minutes. Do I have a way to add the new services where it reloads? Of course the CAS services can be configured to reload from database but not the oauth registered services. Thanks -- 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 -- 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 -- 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 -- 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 -- 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 -- 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
