How to Synchronized Configuration Service Registry between CAS server and the services management webapp

829 views
Skip to first unread message

Doan Moon

unread,
May 30, 2017, 10:11:19 PM5/30/17
to CAS Community
Hi All !

I'm building CAS Sever (5.0.5) and CAS management webapp (5.0.5) on the same machine. 
I have a question => How to Synchronized Configuration Service Registry between CAS server and the services management webapp ?

If i add one file service json to Cas server (5.0.5) : \cas\WEB-INF\classes\services 
{
  "@class" : "org.apereo.cas.services.RegexRegisteredService",
  "serviceId" : "^https?://.*",
  "name" : "HTTP",
  "id" : 10000003,
  "description" : "This service definition authorizes all application urls that support HTTP protocols.",
  "evaluationOrder" : 2
}

=> Then Cas client Login OK

But i add content the same with CAS management webapp (5.0.5): I see 1 file service json added to \cas-management\WEB-INF\classes\services

=> But Cas Login can't get service json config in CAS management webapp (It still got the service Registry from Cas server (5.0.5)  localtion \cas\WEB-INF\classes\services


Synchronized Configuration

You MUST keep in mind that both applications (the CAS server and the services management webapp) share the sameservice registry configuration for CAS services.


How do i solve this problem ?


Thanks.


sesharaju sv

unread,
Jun 5, 2017, 9:26:20 AM6/5/17
to cas-...@apereo.org
I think we have set the service registry location

cas.serviceRegistry.config.location=classpath:/services

point this property to an external source location and check

Thanks
Seshu
> --
> - CAS gitter chatroom: https://gitter.im/apereo/cas
> - CAS mailing list guidelines:
> https://apereo.github.io/cas/Mailing-Lists.html
> - CAS documentation website: https://apereo.github.io/cas
> - CAS project website: https://github.com/apereo/cas
> ---
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cas-user+u...@apereo.org.
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/ee8cd685-682e-470e-b182-6d1dfa2fabc9%40apereo.org.



--
Venkata S Sadhu (Seshu)
India (Mobile) : +91 7032638062 (WhatsApp)
INDIA

Doan Moon

unread,
Jun 5, 2017, 10:10:24 PM6/5/17
to CAS Community
Thank your reply, Sesharaju sv. In my project, i have set cas.serviceRegistry.config.location=classpath:/services in application.properties of CAS Server (5.0.5) and also CAS Service Management (5.0.5). I see Json Service Registry not share the sameservice registry

I have attact application.properties of my CAS server and CAS management (5.0.5). 

Where was i wrong ?
applicationCas-management505.properties
application_Cas505.properties

Angel Guerra

unread,
Jul 31, 2017, 4:29:05 PM7/31/17
to CAS Community
The solution that worked for me was to configure the parameter so
cas.serviceRegistry.config.location=file:C:/etc/cas/services

Marco Aurelio Osorio De León

unread,
Aug 1, 2017, 3:15:13 AM8/1/17
to cas-...@apereo.org
Hi,
This property should by override in both property files, management and server
##
# JSON Service Registry
# CAS External Service registre
#
# Directory location where JSON service files may be found.
cas.serviceRegistry.config.location=file:///etc/cas/services or file://etc/cas/xxxxx




--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/0ec89d2e-938e-4157-8287-d70bcf31c7e1%40apereo.org.

Doan Moon

unread,
Aug 1, 2017, 11:33:35 AM8/1/17
to cas-...@apereo.org
Thank you, Angel Guerra ! My solution worked ^.^. Thank you very much 

Angel Guerra

unread,
Aug 1, 2017, 11:33:35 AM8/1/17
to cas-...@apereo.org
If this property should be replaced in the properties files

In the cas_server you must go this property in the file properties of the route (/etc/cas/config Linux), (C:/etc/CAs/Windows config)


You must remember that this path is the one that will be read recursive to load all the files. JSON O. Yaml that have the services when the application is deployed

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.

Angel Guerra

unread,
Aug 1, 2017, 11:53:16 AM8/1/17
to cas-...@apereo.org
:)

I have a query

Do not know as to make it work oauth2 in Cas_server
I don't know as to set it correctly in the properties file
Do you know as to run OAuth on Cas_Server?

To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
Reply all
Reply to author
Forward
0 new messages